prosody

changeset 2633
96db2eed2af9
parent 2632
a461c682f67d
child 2649
9ec58769f58f
child 2718
cffb2145b0f9
equal deleted inserted replaced
2632:a461c682f67d 2633:96db2eed2af9
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

mercurial