Commit e338f0de authored by Pierre Ynard's avatar Pierre Ynard

luahttp: print error when setting the host from the lua configuration

(cherry picked from commit 97e6ed6001719200862b537710cc40f739a376fc)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent 9237b0e4
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment