From: Timo Sirainen Date: Wed, 20 Aug 2014 09:19:15 +0000 (+0200) Subject: doveconf: local and remote net/bits addresses were printed with /bits twice. X-Git-Tag: 2.2.14.rc1~141 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7103d82e6ee4aafeb8e316cb5d660553f026298b;p=thirdparty%2Fdovecot%2Fcore.git doveconf: local and remote net/bits addresses were printed with /bits twice. --- diff --git a/src/config/doveconf.c b/src/config/doveconf.c index 190e4e96d9..ae4c68bb17 100644 --- a/src/config/doveconf.c +++ b/src/config/doveconf.c @@ -340,7 +340,7 @@ config_dump_filter_begin(string_t *str, unsigned int indent = 0; if (filter->local_bits > 0) { - str_printfa(str, "local %s", filter->local_host); + str_printfa(str, "local %s", net_ip2addr(&filter->local_net)); if (IPADDR_IS_V4(&filter->local_net)) { if (filter->local_bits != 32) @@ -361,7 +361,7 @@ config_dump_filter_begin(string_t *str, if (filter->remote_bits > 0) { str_append_n(str, indent_str, indent*2); - str_printfa(str, "remote %s", filter->remote_host); + str_printfa(str, "remote %s", net_ip2addr(&filter->remote_net)); if (IPADDR_IS_V4(&filter->remote_net)) { if (filter->remote_bits != 32)