changeset 17729:8d3895feb931

doveconf: local and remote net/bits addresses were printed with /bits twice.
author Timo Sirainen <tss@iki.fi>
date Wed, 20 Aug 2014 11:19:15 +0200
parents 0b86058d4e5e
children 9ee7381056d5
files src/config/doveconf.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/doveconf.c	Wed Aug 20 11:09:27 2014 +0200
+++ b/src/config/doveconf.c	Wed Aug 20 11:19:15 2014 +0200
@@ -340,7 +340,7 @@
 	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 @@
 
 	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)