Software / code / prosody
Comparison
net/connlisteners.lua @ 2547:b2cb0935f158
net.connlisteners: Remove redundant variable declaration
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 31 Jan 2010 15:44:55 +0000 |
| parent | 2546:cadfb455a00c |
| child | 2551:5f15f21014c4 |
comparison
equal
deleted
inserted
replaced
| 2546:cadfb455a00c | 2547:b2cb0935f158 |
|---|---|
| 55 | 55 |
| 56 local interface = (udata and udata.interface) or h.default_interface or "*"; | 56 local interface = (udata and udata.interface) or h.default_interface or "*"; |
| 57 local port = (udata and udata.port) or h.default_port or error("Can't start listener "..name.." because no port was specified, and it has no default port", 0); | 57 local port = (udata and udata.port) or h.default_port or error("Can't start listener "..name.." because no port was specified, and it has no default port", 0); |
| 58 local mode = (udata and udata.mode) or h.default_mode or 1; | 58 local mode = (udata and udata.mode) or h.default_mode or 1; |
| 59 local ssl = (udata and udata.ssl) or nil; | 59 local ssl = (udata and udata.ssl) or nil; |
| 60 local maxclients = 99999999; | |
| 61 local autossl = udata and udata.type == "ssl"; | 60 local autossl = udata and udata.type == "ssl"; |
| 62 | 61 |
| 63 return server.addserver(interface, port, h, mode, autossl and ssl or nil); | 62 return server.addserver(interface, port, h, mode, autossl and ssl or nil); |
| 64 end | 63 end |
| 65 | 64 |