From 732cab2ef37deaf4e46d25cfa51752f267b6790e Mon Sep 17 00:00:00 2001 From: Ivan K Date: Sun, 30 Mar 2025 09:54:31 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(podkop):=20fix=20typo=20in?= =?UTF-8?q?=20translation=20and=20dns=20check=20timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luci-app-podkop/po/ru/podkop.po | 4 ++-- podkop/files/usr/bin/podkop | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/luci-app-podkop/po/ru/podkop.po b/luci-app-podkop/po/ru/podkop.po index 210f4a5..66448da 100644 --- a/luci-app-podkop/po/ru/podkop.po +++ b/luci-app-podkop/po/ru/podkop.po @@ -40,8 +40,8 @@ msgstr "Конфигурация Outbound" msgid "Proxy Configuration URL" msgstr "URL конфигурации прокси" -msgid "Enter connection string starting with vless:// or ss:// for proxy configuration. Add comments with // for backup configs" -msgstr "Введите строку подключения, начинающуюся с vless:// или ss:// для настройки прокси. Добавляйте комментарии с // для резервных конфигураций" +msgid "Enter connection string starting with vless:// or ss:// for proxy configuration. Add comments with // for saving other configs" +msgstr "Введите строку подключения, начинающуюся с vless:// или ss:// для настройки прокси. Добавляйте комментарии с // для сохранения других конфигураций" msgid "Outbound Configuration" msgstr "Конфигурация исходящего соединения" diff --git a/podkop/files/usr/bin/podkop b/podkop/files/usr/bin/podkop index 4195579..abeb9bc 100755 --- a/podkop/files/usr/bin/podkop +++ b/podkop/files/usr/bin/podkop @@ -2049,10 +2049,14 @@ check_dns_available() { fi fi elif [ "$dns_type" = "dot" ]; then - if nc $dns_server 853 /dev/null 2>&1; then + nc $dns_server 853 /dev/null 2>&1 & pid=$! + (sleep 3; kill $pid 2>/dev/null) & killpid=$! + wait $pid >/dev/null 2>&1 + if [ $? -eq 0 ]; then is_available=1 status="available" fi + kill $killpid 2>/dev/null elif [ "$dns_type" = "udp" ]; then if nslookup -timeout=2 itdog.info $dns_server >/dev/null 2>&1; then is_available=1