Software /
code /
prosody-modules
Comparison
mod_secure_interfaces/mod_secure_interfaces.lua @ 2730:cd828b1cb5b9
mod_secure_interfaces: Add ::1 to the default secure_interfaces.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 16 Jul 2017 19:29:05 +0100 |
parent | 2726:55f3ab952d06 |
child | 3415:6c806a99f802 |
comparison
equal
deleted
inserted
replaced
2729:7983335e88e9 | 2730:cd828b1cb5b9 |
---|---|
1 local secure_interfaces = module:get_option_set("secure_interfaces", { "127.0.0.1" }); | 1 local secure_interfaces = module:get_option_set("secure_interfaces", { "127.0.0.1", "::1" }); |
2 | 2 |
3 module:hook("stream-features", function (event) | 3 module:hook("stream-features", function (event) |
4 local session = event.origin; | 4 local session = event.origin; |
5 if session.type ~= "c2s_unauthed" then return; end | 5 if session.type ~= "c2s_unauthed" then return; end |
6 local socket = session.conn:socket(); | 6 local socket = session.conn:socket(); |