Software /
code /
prosody
Comparison
net/server_select.lua @ 5961:5745bb2b6890
net/server_select: Fix typo
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Wed, 18 Dec 2013 18:06:33 -0500 |
parent | 5960:2a6edd4678c5 |
child | 5965:99d55f12a26f |
comparison
equal
deleted
inserted
replaced
5960:2a6edd4678c5 | 5961:5745bb2b6890 |
---|---|
932 | 932 |
933 local addclient = function( address, port, listeners, pattern, sslctx ) | 933 local addclient = function( address, port, listeners, pattern, sslctx ) |
934 local err | 934 local err |
935 if type( listeners ) ~= "table" then | 935 if type( listeners ) ~= "table" then |
936 err = "invalid listener table" | 936 err = "invalid listener table" |
937 elseif type ( addr ) ~= "string" then | 937 elseif type ( address ) ~= "string" then |
938 err = "invalid address" | 938 err = "invalid address" |
939 elseif type( port ) ~= "number" or not ( port >= 0 and port <= 65535 ) then | 939 elseif type( port ) ~= "number" or not ( port >= 0 and port <= 65535 ) then |
940 err = "invalid port" | 940 err = "invalid port" |
941 elseif sslctx and not has_luasec then | 941 elseif sslctx and not has_luasec then |
942 err = "luasec not found" | 942 err = "luasec not found" |