Also work without SRV records
This commit is contained in:
parent
ad8c76602b
commit
68e35e631a
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue