aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-04-09 12:32:25 +0100
committerMatthew Wild <mwild1@gmail.com>2010-04-09 12:32:25 +0100
commit8d3d5fb5d7c787738fc863bfba7c48c08c2d12f7 (patch)
treee6e839537a1fe22c67df5e2ce7a7c29652be2a85 /net
parent4763db4b4234987de5db3fee47c6e147e9ad3f8a (diff)
parentc802b22a8bb05ab6b9644c1c722bb06b7b16a0ee (diff)
downloadprosody-8d3d5fb5d7c787738fc863bfba7c48c08c2d12f7.tar.gz
prosody-8d3d5fb5d7c787738fc863bfba7c48c08c2d12f7.zip
Merge 0.7->trunk
Diffstat (limited to 'net')
-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 0aad924d..ebf5c427 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -661,7 +661,7 @@ addserver = function( addr, port, listeners, pattern, sslctx ) -- this function
if type( listeners ) ~= "table" then
err = "invalid listener table"
end
- if not type( port ) == "number" or not ( port >= 0 and port <= 65535 ) then
+ if type( port ) ~= "number" or not ( port >= 0 and port <= 65535 ) then
err = "invalid port"
elseif _server[ port ] then
err = "listeners on port '" .. port .. "' already exist"