[vlc-commits] lua: rc: Accept backward compatible hosts

Hugo Beauzée-Luyssen git at videolan.org
Wed Feb 28 17:53:33 CET 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Feb 28 14:31:30 2018 +0100| [a996a926fa3e834dfe7484d54ceec17fed8ea4e8] | committer: Hugo Beauzée-Luyssen

lua: rc: Accept backward compatible hosts

refs #19871

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a996a926fa3e834dfe7484d54ceec17fed8ea4e8
---

 share/lua/intf/modules/host.lua | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/share/lua/intf/modules/host.lua b/share/lua/intf/modules/host.lua
index b0a4983e2f..1d84bbad94 100644
--- a/share/lua/intf/modules/host.lua
+++ b/share/lua/intf/modules/host.lua
@@ -254,6 +254,9 @@ function host()
                 h:listen_stdio()
             else
                 u = vlc.strings.url_parse( url )
+                if url.host == nil then
+                    u = vlc.strings.url_parse( "//" .. url )
+                end
                 h:listen_tcp( u.host, u.port, (u.protocol == "telnet") )
             end
         end



More information about the vlc-commits mailing list