Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1229:88e025c0d1c6 HEAD
Don't listen in imaps/pop3s if ssl_disable = yes. Even if they're listed in
protocols.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 23 Feb 2003 12:43:38 +0200 |
parents | 4e438a5c00d3 |
children | e6d2b8c78519 |
files | src/master/main.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/main.c Sat Feb 22 18:16:40 2003 +0200 +++ b/src/master/main.c Sun Feb 23 12:43:38 2003 +0200 @@ -257,11 +257,13 @@ if (strcasecmp(*proto, "imap") == 0) { fd = &mail_fd[FD_IMAP]; ip = imap_ip; port = imap_port; } else if (strcasecmp(*proto, "imaps") == 0) { - fd = &mail_fd[FD_IMAPS]; ip = imaps_ip; port = imaps_port; + fd = &mail_fd[FD_IMAPS]; ip = imaps_ip; + port = set->ssl_disable ? 0 : imaps_port; } else if (strcasecmp(*proto, "pop3") == 0) { fd = &mail_fd[FD_POP3]; ip = pop3_ip; port = pop3_port; } else if (strcasecmp(*proto, "pop3s") == 0) { - fd = &mail_fd[FD_POP3S]; ip = pop3s_ip; port = pop3s_port; + fd = &mail_fd[FD_POP3S]; ip = pop3s_ip; + port = set->ssl_disable ? 0 : pop3s_port; } else { i_fatal("Unknown protocol %s", *proto); }