mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
net.httpserver: Pass on interface option from new_from_config() (thanks Chris)
This commit is contained in:
parent
67e111826e
commit
d4b704023a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue