diff --git a/discordgsm/protocols/asa.py b/discordgsm/protocols/asa.py index 1f1bcd1..5680b0a 100644 --- a/discordgsm/protocols/asa.py +++ b/discordgsm/protocols/asa.py @@ -78,12 +78,13 @@ async def query_server_info(self, access_token, host, port): "Content-Type": "application/json", "Accept": "application/json" } - body = { - "criteria": [ - {"key": "attributes.ADDRESS_s", "op": "EQUAL", "value": host}, - {"key": "attributes.ADDRESSBOUND_s", "op": "EQUAL", "value": f"{host}:{port}"} - ] - } + + criteria = [ + {"key": "attributes.ADDRESS_s", "op": "EQUAL", "value": host}, + {"key": "attributes.ADDRESSBOUND_s", "op": "CONTAINS", "value": f":{port}"} + ] + + body = {"criteria": criteria} async with aiohttp.ClientSession() as session: async with session.post(url, headers=headers, json=body) as response: