prosody

changeset 2859
460681180194
parent 2849
c940726e787e
child 2877
1edeb8fe7d14
equal deleted inserted replaced
2858:d08771a2f617 2859:460681180194
219 friendly_message = "this port is in use by another application"; 219 friendly_message = "this port is in use by another application";
220 end 220 end
221 elseif err:match("permission") then 221 elseif err:match("permission") then
222 friendly_message = "Prosody does not have sufficient privileges to use this port"; 222 friendly_message = "Prosody does not have sufficient privileges to use this port";
223 elseif err == "no ssl context" then 223 elseif err == "no ssl context" then
224 friendly_message = "there is no 'ssl' config under Host \"*\" which is " 224 if not config.get("*", "core", "ssl") then
225 .."require for legacy SSL ports"; 225 friendly_message = "there is no 'ssl' config under Host \"*\" which is "
226 .."require for legacy SSL ports";
227 else
228 friendly_message = "initializing SSL support failed, see previous log entries";
229 end
226 end 230 end
227 log("error", "Failed to open server port %d, %s", port, friendly_message); 231 log("error", "Failed to open server port %d, %s", port, friendly_message);
228 end 232 end
229 end 233 end
230 end 234 end

mercurial