diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-03-08 16:01:54 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-03-08 16:01:54 +0000 |
commit | fc3f96af4e6c7f4ffe6612b705849d7860ab3cd0 (patch) | |
tree | 4687671a02fd6d986e10f3c7c9e0bcdd04066fd8 /src | |
parent | fa18eebc52b4a66752320ecc5152cfac6c2dcc64 (diff) |
Shorten long daemon-startup log lines
Diffstat (limited to 'src')
-rw-r--r-- | src/src/daemon.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/src/daemon.c b/src/src/daemon.c index d7f579235..ebd06b523 100644 --- a/src/src/daemon.c +++ b/src/src/daemon.c @@ -1687,6 +1687,16 @@ else if (daemon_listen) } else if (ipa->address[0] == 0) (void)sprintf(CS p, " port %d (IPv4)", ipa->port); + else if ( i > 0 + && host_is_tls_on_connect_port(ipa[-1].port) == (j > 0) + && Ustrcmp(ipa->address, ipa[-1].address) == 0 + ) + { + if (p[-1] == '}') p--; + while (isdigit(*--p)) ; + (void)sprintf(CS p+1, "%s%d,%d}", *p == ',' ? "" : "{", + ipa[-1].port, ipa->port); + } else (void)sprintf(CS p, " [%s]:%d", ipa->address, ipa->port); while (*p != 0) p++; |