projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df0842f
)
prosody: Show friendly error when no config present for legacy SSL ports
author
Matthew Wild
<mwild1@gmail.com>
Sun, 31 Jan 2010 17:15:35 +0000
(17:15 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 31 Jan 2010 17:15:35 +0000
(17:15 +0000)
prosody
patch
|
blob
|
history
diff --git
a/prosody
b/prosody
index 96223c72f2b7506e88745e1757911a822c66b092..9d0054c528e5a9702fb18f9b8bd3cb1a33b71e2a 100755
(executable)
--- a/
prosody
+++ b/
prosody
@@
-228,6
+228,9
@@
function init_global_state()
end
elseif err:match("permission") then
friendly_message = "Prosody does not have sufficient privileges to use this port";
+ elseif err == "no ssl context" then
+ friendly_message = "there is no 'ssl' config under Host \"*\" which is "
+ .."require for legacy SSL ports";
end
log("error", "Failed to open server port %d, %s", port, friendly_message);
end