Software /
code /
prosody-modules
Changeset
2975:7eb6fa9b03fd
mod_net_proxy: Added missing return when detecting unparseable PROXYv1 source address
author | Pascal Mathis <mail@pascalmathis.com> |
---|---|
date | Sun, 01 Apr 2018 22:43:15 +0200 |
parents | 2974:cd36b16f6b35 |
children | 2976:df86ce6bb0b4 |
files | mod_net_proxy/mod_net_proxy.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_net_proxy/mod_net_proxy.lua Sun Apr 01 22:41:40 2018 +0200 +++ b/mod_net_proxy/mod_net_proxy.lua Sun Apr 01 22:43:15 2018 +0200 @@ -159,6 +159,7 @@ local _, err = ip.new_ip(src_addr); if err ~= nil then module:log("warn", "Received unparseable PROXYv1 source address from %s: %s", conn:ip(), src_addr); + return PROTO_HANDLER_STATUS.FAILURE, nil; end _, err = ip.new_ip(dst_addr); if err ~= nil then