2 Commits
Author SHA1 Message Date
austnv a3c7b5bdd1 v0.7.5
Build and Deploy Backend / build-and-deploy (push) Successful in 33s
2026-06-26 12:55:38 +03:00
austnv 6c7adb1028 feat: add country_code field to hosts response 2026-06-26 12:51:45 +03:00
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "uvpn-backend"
version = "0.7.4"
version = "0.7.5"
description = "FastAPI backend with Docker for uvpn.shop"
readme = "README.md"
requires-python = ">=3.12"
+3 -1
View File
@@ -3,6 +3,7 @@ import logging
from os import getenv
from remnawave import RemnawaveSDK
from remnawave.models.hosts import GetAllHostsResponseDto
from remnawave.models.nodes import GetOneNodeResponseDto
import re
@@ -40,7 +41,8 @@ async def get_nodes():
{
'name': clean_host_name(host.remark),
'address': host.address,
'port': host.port
'port': host.port,
'country_code': (await remnawave.nodes.get_one_node(uuid=host.nodes[0])).country_code
}
for host in hosts.root if not host.is_disabled and not host.is_hidden