[vlc-commits] luahttp: print error when setting the host from the lua configuration
Pierre Ynard
git at videolan.org
Sun Dec 18 19:19:50 CET 2011
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Dec 18 19:08:08 2011 +0100| [97e6ed6001719200862b537710cc40f739a376fc] | committer: Pierre Ynard
luahttp: print error when setting the host from the lua configuration
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97e6ed6001719200862b537710cc40f739a376fc
---
share/lua/intf/http.lua | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/share/lua/intf/http.lua b/share/lua/intf/http.lua
index 0fa0f17..8c1dddb 100644
--- a/share/lua/intf/http.lua
+++ b/share/lua/intf/http.lua
@@ -311,6 +311,12 @@ local function load_dir(dir,root,parent_acl)
return my_acl
end
+if config.host then
+ vlc.msg.err("\""..config.host.."\" HTTP host ignored")
+ local port = string.match(config.host, ":(%d+)[^]]*$")
+ vlc.msg.info("Pass --http-host=IP "..(port and "and --http-port="..port.." " or "").."on the command line instead.")
+end
+
h = vlc.httpd()
local root_acl = load_dir( http_dir )
local a = h:handler("/art",nil,nil,root_acl,callback_art,nil)
More information about the vlc-commits
mailing list