]> git.sesse.net Git - vlc/commitdiff
LUA HTTP: update httpd creation
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 2 Aug 2011 16:09:59 +0000 (19:09 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 2 Aug 2011 16:19:14 +0000 (19:19 +0300)
share/lua/intf/http.lua

index fcebdd1318c77e2d82b27647220358ce75fbe187..0fa0f17a03448f7ff9ff2789dae3f9085c322ca0 100644 (file)
@@ -23,7 +23,6 @@
 
 --[==========================================================================[
 Configuration options:
- * host: A host to listen on.
  * dir: Directory to use as the http interface's root.
  * no_error_detail: If set, do not print the Lua error message when generating
                     a page fails.
@@ -312,8 +311,7 @@ local function load_dir(dir,root,parent_acl)
     return my_acl
 end
 
-local u = vlc.net.url_parse( config.host or "0.0.0.0:8080" )
-h = vlc.httpd(u.host,u.port)
+h = vlc.httpd()
 local root_acl = load_dir( http_dir )
 local a = h:handler("/art",nil,nil,root_acl,callback_art,nil)