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

Hugo Beauzée-Luyssen git at videolan.org
Thu Mar 1 10:05:28 CET 2018


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

lua: rc: Accept backward compatible hosts

refs #19871

(cherry picked from commit a996a926fa3e834dfe7484d54ceec17fed8ea4e8)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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