mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 02:19:25 -05:00
handle server names with embeded ports
This commit is contained in:
parent
2221a13a4d
commit
fe6832fae8
@ -15,6 +15,10 @@ import argparse
|
||||
import logging
|
||||
|
||||
def get_targets(server_name):
|
||||
if ":" in server_name:
|
||||
target, port = server_name.split(":")
|
||||
yield (target, int(port))
|
||||
return
|
||||
try:
|
||||
answers = dns.resolver.query("_matrix._tcp." + server_name, "SRV")
|
||||
for srv in answers:
|
||||
|
Loading…
Reference in New Issue
Block a user