def _resolve(host): | def _resolve(host): | ||||
# let's just see if it starts with a number or a colon, for simplicity | # let's just see if it starts with a number or a colon, for simplicity | ||||
if re.match(r'^[0-9:]', host): | if re.match(r'^[0-9:]', host): | ||||
return | |||||
return host | |||||
return socket.gethostbyname(host) | return socket.gethostbyname(host) | ||||