[vlc-commits] LUA HTTP: update httpd creation

Rémi Denis-Courmont git at videolan.org
Tue Aug 2 18:19:25 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug  2 19:09:59 2011 +0300| [b19510a8557e58eab842b8b9e59ba95ad87f05ab] | committer: Rémi Denis-Courmont

LUA HTTP: update httpd creation

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

 share/lua/intf/http.lua |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/share/lua/intf/http.lua b/share/lua/intf/http.lua
index fcebdd1..0fa0f17 100644
--- a/share/lua/intf/http.lua
+++ b/share/lua/intf/http.lua
@@ -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)
 



More information about the vlc-commits mailing list