summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-11-03 16:08:22 +0000
committerMark Haines <mark.haines@matrix.org>2014-11-03 16:08:22 +0000
commitfe6832fae85d56b0b4cdc906a73a2c64a26de15d (patch)
tree47911798739a3e27767099b1caec7ecd4ce906dc
parentscript for checking signatures on signed json (diff)
downloadsynapse-fe6832fae85d56b0b4cdc906a73a2c64a26de15d.tar.xz
handle server names with embeded ports
-rw-r--r--scripts/check_signature.py4
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: