aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-11-17 16:26:40 +0100
committerKim Alvefur <zash@zash.se>2018-11-17 16:26:40 +0100
commit589010b4070103d23d11b3af13874bda788a2122 (patch)
treec48313c12b1cc8d26da1e9e0b98b0bf8be79499d /net/server_select.lua
parent3d3e0fa0826c0d107a7b99d875190ba4421f668a (diff)
downloadprosody-589010b4070103d23d11b3af13874bda788a2122.tar.gz
prosody-589010b4070103d23d11b3af13874bda788a2122.zip
net.server_select: Fix IP validation to use correct variable (thanks quest)
Copy-paste mistake most likely. Not caught because server_select is ignored by luacheck.
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index bc86742c..1a40a6d3 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -1009,7 +1009,7 @@ local addclient = function( address, port, listeners, pattern, sslctx, typ )
err = "luasec not found"
end
if not typ then
- local n = inet_pton(addr);
+ local n = inet_pton(address);
if not n then return nil, "invalid-ip"; end
if #n == 16 then
typ = "tcp6";