Mercurial > prosody-hg
comparison net/server_select.lua @ 9495:89e05b118f6e
net.server: Remove socket constructor fallback
Should no longer be needed
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 12 Oct 2018 16:24:49 +0200 |
| parents | 5fdda751333a |
| children | 36e379f058c8 |
comparison
equal
deleted
inserted
replaced
| 9494:b19f676203fd | 9495:89e05b118f6e |
|---|---|
| 1015 typ = "tcp6"; | 1015 typ = "tcp6"; |
| 1016 elseif #n == 4 then | 1016 elseif #n == 4 then |
| 1017 typ = "tcp4"; | 1017 typ = "tcp4"; |
| 1018 end | 1018 end |
| 1019 end | 1019 end |
| 1020 local create = luasocket[typ] or luasocket.tcp; | 1020 local create = luasocket[typ]; |
| 1021 if type( create ) ~= "function" then | 1021 if type( create ) ~= "function" then |
| 1022 err = "invalid socket type" | 1022 err = "invalid socket type" |
| 1023 end | 1023 end |
| 1024 | 1024 |
| 1025 if err then | 1025 if err then |
