aboutsummaryrefslogtreecommitdiffstats
path: root/net/httpserver.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-19 17:56:39 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-19 17:56:39 +0100
commitd4b704023aebcd2ee162d534834498cd0f8270fa (patch)
tree7a01e599ffe44e1418bdb31d6be869da404936e5 /net/httpserver.lua
parent67e111826e24a9ac3a2290eedcf7f1060aa3c33d (diff)
downloadprosody-d4b704023aebcd2ee162d534834498cd0f8270fa.tar.gz
prosody-d4b704023aebcd2ee162d534834498cd0f8270fa.zip
net.httpserver: Pass on interface option from new_from_config() (thanks Chris)
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r--net/httpserver.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua
index 3a54fd62..0ed67909 100644
--- a/net/httpserver.lua
+++ b/net/httpserver.lua
@@ -278,7 +278,9 @@ function new_from_config(ports, handle_request, default_options)
ssl.protocol = "sslv23";
end
- new{ port = port, base = base, handler = handle_request, ssl = ssl, type = (ssl and "ssl") or "tcp" }
+ new{ port = port, interface = interface,
+ base = base, handler = handle_request,
+ ssl = ssl, type = (ssl and "ssl") or "tcp" };
end
end