transit: allow port to be a 'long'
This commit is contained in:
parent
cf9053637c
commit
b7ff5f05d5
|
@ -701,7 +701,8 @@ class Common:
|
||||||
and isinstance(hint[u"hostname"], type(u""))):
|
and isinstance(hint[u"hostname"], type(u""))):
|
||||||
log.msg("invalid hostname in hint: %r" % (hint,))
|
log.msg("invalid hostname in hint: %r" % (hint,))
|
||||||
return None
|
return None
|
||||||
if not(u"port" in hint and isinstance(hint[u"port"], int)):
|
if not(u"port" in hint
|
||||||
|
and isinstance(hint[u"port"], six.integer_types)):
|
||||||
log.msg("invalid port in hint: %r" % (hint,))
|
log.msg("invalid port in hint: %r" % (hint,))
|
||||||
return None
|
return None
|
||||||
priority = hint.get(u"priority", 0.0)
|
priority = hint.get(u"priority", 0.0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user