diff --git a/candig_federation/network.py b/candig_federation/network.py index 9bb4f16..d32bfa4 100644 --- a/candig_federation/network.py +++ b/candig_federation/network.py @@ -13,7 +13,6 @@ TYK_FEDERATION_API_ID = os.getenv("TYK_FEDERATION_API_ID") -TYK_LISTEN_PATH = os.getenv("TYK_LISTEN_PATH", "federation") APPROLE_TOKEN = None if os.getenv("TESTING", False): APPROLE_TOKEN = "test" @@ -33,8 +32,8 @@ def get_registered_servers(): def register_server(obj): servers = get_registered_servers() new_server = obj['server'] - if not new_server['url'].endswith(TYK_LISTEN_PATH): - new_server['url'] = new_server['url'] + '/' + TYK_LISTEN_PATH + if not new_server['url'].endswith("/federation"): + new_server['url'] = new_server['url'] + "/federation" if servers is not None: # check to see if it's already here: