diff --git a/routers/hosts.py b/routers/hosts.py index 6f170ab..e232a1a 100644 --- a/routers/hosts.py +++ b/routers/hosts.py @@ -42,7 +42,7 @@ async def get_nodes(): 'name': clean_host_name(host.remark), 'address': host.address, 'port': host.port, - 'country_code': (await remnawave.nodes.get_one_node(uuid=host.nodes[0])).country_code + 'country_code': (await remnawave.nodes.get_one_node(uuid=host.nodes[0].hex)).country_code } for host in hosts.root if not host.is_disabled and not host.is_hidden