diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-11-03 16:08:22 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-11-03 16:08:22 +0000 |
commit | fe6832fae85d56b0b4cdc906a73a2c64a26de15d (patch) | |
tree | 47911798739a3e27767099b1caec7ecd4ce906dc | |
parent | script for checking signatures on signed json (diff) | |
download | synapse-fe6832fae85d56b0b4cdc906a73a2c64a26de15d.tar.xz |
handle server names with embeded ports
-rw-r--r-- | scripts/check_signature.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/check_signature.py b/scripts/check_signature.py index 6309c32cc1..e7964e7e71 100644 --- a/scripts/check_signature.py +++ b/scripts/check_signature.py @@ -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: |