From 2520994b13bbd0d9df6e6a20ec6928f34ed8cd39 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 18 Feb 2024 22:57:54 +0100 Subject: [PATCH] [xray] dns --- web/html/xui/dns_modal.html | 88 ++++++++++++++++++ web/html/xui/xray.html | 120 +++++++++++++++++++++++++ web/translation/translate.en_US.toml | 9 ++ web/translation/translate.fa_IR.toml | 9 ++ web/translation/translate.ru_RU.toml | 9 ++ web/translation/translate.vi_VN.toml | 9 ++ web/translation/translate.zh_Hans.toml | 9 ++ 7 files changed, 253 insertions(+) create mode 100644 web/html/xui/dns_modal.html diff --git a/web/html/xui/dns_modal.html b/web/html/xui/dns_modal.html new file mode 100644 index 0000000000..72b583a6b0 --- /dev/null +++ b/web/html/xui/dns_modal.html @@ -0,0 +1,88 @@ +{{define "dnsModal"}} + + + + + + + + + + + + + + [[ l ]] + + + + + + +{{end}} diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html index ae961cd4bd..d89069085f 100644 --- a/web/html/xui/xray.html +++ b/web/html/xui/xray.html @@ -458,6 +458,61 @@ + + + + @@ -480,6 +535,7 @@ {{template "ruleModal"}} {{template "outModal"}} {{template "reverseModal"}} +{{template "dnsModal"}} {{template "warpModal"}} diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index 9d60fa4511..f7a66eaed0 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -419,6 +419,15 @@ "psk" = "PreShared Key" "domainStrategy" = "Domain Strategy" +[pages.xray.dns] +"enable" = "Enable DNS" +"enableDesc" = "Enable built-in DNS server" +"strategy" = "Query Strategy" +"strategyDesc" = "Overall strategy to resolve domain names" +"add" = "Add Server" +"edit" = "Edit Server" +"domains" = "Domains" + [tgbot] "noResult" = "❗ No result!" "wentWrong" = "❌ Something went wrong!" diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml index cf8fee14dc..4074628356 100644 --- a/web/translation/translate.fa_IR.toml +++ b/web/translation/translate.fa_IR.toml @@ -418,6 +418,15 @@ "psk" = "کلید مشترک" "domainStrategy" = "استراتژی حل دامنه" +[pages.xray.dns] +"enable" = "فعال کردن حل دامنه" +"enableDesc" = "سرور حل دامنه داخلی را فعال کنید" +"strategy" = "استراتژی پرس‌وجو" +"strategyDesc" = "استراتژی کلی برای حل نام دامنه" +"add" = "افزودن سرور" +"edit" = "ویرایش سرور" +"domains" = "دامنه‌ها" + [tgbot] "noResult" = "❗نتیجه‌ای یافت نشد" "wentWrong" = "❌ مشکلی رخ داده‌است" diff --git a/web/translation/translate.ru_RU.toml b/web/translation/translate.ru_RU.toml index 5e72f6037b..25d65e7a52 100644 --- a/web/translation/translate.ru_RU.toml +++ b/web/translation/translate.ru_RU.toml @@ -419,6 +419,15 @@ "psk" = "Общий ключ" "domainStrategy" = "Стратегия домена" +[pages.xray.dns] +"enable" = "Включить DNS" +"enableDesc" = "Включить встроенный DNS-сервер" +"strategy" = "Стратегия запроса" +"strategyDesc" = "Общая стратегия разрешения доменных имен" +"add" = "Добавить сервер" +"edit" = "Редактировать сервер" +"domains" = "Домены" + [tgbot] "noResult" = "❗ Нет результатов!" "wentWrong" = "❌ Что-то пошло не так!" diff --git a/web/translation/translate.vi_VN.toml b/web/translation/translate.vi_VN.toml index 9bb8aaa70d..94f18b7753 100644 --- a/web/translation/translate.vi_VN.toml +++ b/web/translation/translate.vi_VN.toml @@ -419,6 +419,15 @@ "psk" = "Khóa chia sẻ" "domainStrategy" = "Chiến lược tên miền" +[pages.xray.dns] +"enable" = "Kích hoạt DNS" +"enableDesc" = "Kích hoạt máy chủ DNS tích hợp" +"strategy" = "Chiến lược truy vấn" +"strategyDesc" = "Chiến lược tổng thể để phân giải tên miền" +"add" = "Thêm máy chủ" +"edit" = "Chỉnh sửa máy chủ" +"domains" = "Tên miền" + [tgbot] "noResult" = "❗ Không có kết quả!" "wentWrong" = "❌ Đã xảy ra lỗi!" diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml index 9766205935..9d298706a2 100644 --- a/web/translation/translate.zh_Hans.toml +++ b/web/translation/translate.zh_Hans.toml @@ -419,6 +419,15 @@ "psk" = "共享密钥" "domainStrategy" = "域策略" +[pages.xray.dns] +"enable" = "启用 DNS" +"enableDesc" = "启用内置 DNS 服务器" +"strategy" = "查询策略" +"strategyDesc" = "解析域名的总体策略" +"add" = "添加服务器" +"edit" = "编辑服务器" +"domains" = "域" + [tgbot] "noResult" = "❗ 没有结果!" "wentWrong" = "❌ 出了点问题!"