From 8b6e3491c4ed8e8dca8c068d99c4126b6927cf2e Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Thu, 26 Sep 2024 12:19:18 +0200 Subject: [PATCH 01/45] base install for amzn --- install.sh | 2 +- x-ui.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index a0b937a4..3435fc76 100644 --- a/install.sh +++ b/install.sh @@ -110,7 +110,7 @@ install_base() { centos | almalinux | rocky | oracle) yum -y update && yum install -y -q wget curl tar tzdata ;; - fedora) + fedora | amzn) dnf -y update && dnf install -y -q wget curl tar tzdata ;; arch | manjaro | parch) diff --git a/x-ui.sh b/x-ui.sh index 120c83a0..e4bc622b 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -478,7 +478,7 @@ enable_bbr() { centos | almalinux | rocky | oracle) yum -y update && yum -y install ca-certificates ;; - fedora) + fedora | amzn) dnf -y update && dnf -y install ca-certificates ;; arch | manjaro | parch) @@ -818,7 +818,7 @@ ssl_cert_issue() { centos | almalinux | rocky | oracle) yum -y update && yum -y install socat ;; - fedora) + fedora | amzn) dnf -y update && dnf -y install socat ;; arch | manjaro | parch) @@ -1169,7 +1169,7 @@ install_iplimit() { yum update -y && yum install epel-release -y yum -y install fail2ban ;; - fedora) + fedora | amzn) dnf -y update && dnf -y install fail2ban ;; arch | manjaro | parch) @@ -1250,7 +1250,7 @@ remove_iplimit() { yum remove fail2ban -y yum autoremove -y ;; - fedora) + fedora | amzn) dnf remove fail2ban -y dnf autoremove -y ;; From 0b8beafc89c684140fe6be4cd007fbb2a9eb5f3d Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Thu, 26 Sep 2024 13:08:54 +0200 Subject: [PATCH 02/45] DNS - Expect IPs --- web/html/xui/dns_modal.html | 33 ++++-- web/html/xui/xray.html | 161 ++++++++++++++------------- web/translation/translate.en_US.toml | 1 + web/translation/translate.es_ES.toml | 1 + web/translation/translate.fa_IR.toml | 1 + web/translation/translate.id_ID.toml | 1 + web/translation/translate.pt_BR.toml | 1 + web/translation/translate.ru_RU.toml | 1 + web/translation/translate.tr_TR.toml | 1 + web/translation/translate.uk_UA.toml | 1 + web/translation/translate.vi_VN.toml | 1 + web/translation/translate.zh_CN.toml | 1 + 12 files changed, 119 insertions(+), 85 deletions(-) diff --git a/web/html/xui/dns_modal.html b/web/html/xui/dns_modal.html index 1ea93885..f61cd8b2 100644 --- a/web/html/xui/dns_modal.html +++ b/web/html/xui/dns_modal.html @@ -1,5 +1,7 @@ {{define "dnsModal"}} - + @@ -8,18 +10,29 @@ - + [[ l ]] + + + +