Also work without SRV records
This commit is contained in:
parent
ad8c76602b
commit
68e35e631a
@ -128,6 +128,9 @@ def resolve(host, port=None, service=None, proto='tcp',
|
||||
hosts = yield from get_SRV(host, port, service, proto,
|
||||
resolver=resolver,
|
||||
use_aiodns=use_aiodns)
|
||||
if not hosts:
|
||||
hosts = [(host, port)]
|
||||
|
||||
results = []
|
||||
for host, port in hosts:
|
||||
if host == 'localhost':
|
||||
|
Loading…
Reference in New Issue
Block a user