Resurrect debug code

This commit is contained in:
Masato Ikeda 2018-04-27 18:28:03 +09:00
parent f0640ada29
commit 751ccb55fb
1 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,11 @@ class DynamicBackend:
if DEBUG:
log('ip: %s' % ipaddress)
for part in ipaddress:
if re.match('^\d{1,3}$', part) is None:
if DEBUG:
log('%s is not a number' % part)
self.handle_self(qname)
return
parti = int(part)
if parti < 0 or parti > 255:
if DEBUG: