def check_host_port(host, port):
 hostport = ('%s:%d' % (host, port))
 for regexp in conf.WHITELIST.get():
  if regexp.match(hostport):
   return True
 return False

def check_host_port ( host , port ) : hostport = ( '%s:%d' % ( host , port ) ) for regexp in conf . WHITELIST . get ( ) : if regexp . match ( hostport ) : return True return False
return true if this host:port pair is allowed to be proxied .