230 friendly_message = "this port is in use by another application"; |
230 friendly_message = "this port is in use by another application"; |
231 end |
231 end |
232 elseif err:match("permission") then |
232 elseif err:match("permission") then |
233 friendly_message = "Prosody does not have sufficient privileges to use this port"; |
233 friendly_message = "Prosody does not have sufficient privileges to use this port"; |
234 elseif err == "no ssl context" then |
234 elseif err == "no ssl context" then |
235 friendly_message = "there is no 'ssl' config under Host \"*\" which is " |
235 if not config.get("*", "core", "ssl") then |
236 .."require for legacy SSL ports"; |
236 friendly_message = "there is no 'ssl' config under Host \"*\" which is " |
|
237 .."require for legacy SSL ports"; |
|
238 else |
|
239 friendly_message = "initializing SSL support failed, see previous log entries"; |
|
240 end |
237 end |
241 end |
238 log("error", "Failed to open server port %d, %s", port, friendly_message); |
242 log("error", "Failed to open server port %d, %s", port, friendly_message); |
239 end |
243 end |
240 end |
244 end |
241 end |
245 end |