No significant functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
server_pat + r' ' + '(?:' + client_pat + '|LIMIT)')
for cs in cfg.sections():
+ def log_ignore(why):
+ print('warning: ignoring config section [%s] (%s)' % (cs, why),
+ file=sys.stderr)
+
if cs == 'LIMIT' or cs == 'COMMON':
# plan A "[LIMIT]" or "[COMMON]"
continue
ci = ipaddr(pc)
except AddressValueError:
# plan F "[<some thing we do not understand>]"
- # well, we ignore this
- print('warning: ignoring config section %s' % cs, file=sys.stderr)
+ log_ignore('bad-addr')
continue
else: # no AddressValueError