From 249a2e3234e5eef6cce2c2a2b3e1a3e30f4175b2 Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Sun, 13 Oct 2024 18:20:52 +0300 Subject: [PATCH] Update --- README.md | 10 +++++++++- install.sh | 2 +- podkop/files/etc/init.d/podkop | 7 +------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e6dd860..5080835 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ rm /etc/hotplug.d/iface/30-vpnroute sed -i '/getdomains start/d' /etc/crontabs/root rm /tmp/dnsmasq.d/domains.lst +service getdomains disable +rm /etc/init.d/getdomains ip route del default scope link table vpn ``` @@ -68,7 +70,7 @@ opkg update && opkg install sing-box **Custom subnets enable** - Добавить подсети или IP-адреса. Для подсетей задать маску. # Известные баги -1. ucitrack не рестартится автоматически после установки пакета +- # ToDo - [x] Скрипт для автоматической установки. @@ -78,6 +80,12 @@ opkg update && opkg install sing-box - [ ] Wiki - [ ] IPv6 - [ ] Исключение для IP, не ходить в туннель\прокси совсем 0x0 +- [ ] Придумать автонастройку DNS через stubby итд. Как лучше это реализовать. +- [ ] Кнопка обновления списка доменов и подсетей +- [ ] Unit тесты (BATS) +- [ ] Интеграционые тесты бекенда (OpenWrt rootfs + BATS) +- [ ] Интеграционые тесты luci (OpenWrt rootfs + Testcafe?) +- [ ] Добавить label от конфига vless\ss\etc в luci. Хз как # Разработка Есть два варианта: diff --git a/install.sh b/install.sh index 917b79a..033b2f7 100755 --- a/install.sh +++ b/install.sh @@ -30,6 +30,6 @@ opkg install $DOWNLOAD_DIR/luci-app-podkop*.ipk rm -f $DOWNLOAD_DIR/podkop*.ipk $DOWNLOAD_DIR/luci-app-podkop*.ipk -/etc/init.d/ucitrack restart +#/etc/init.d/ucitrack restart echo "Install sing-box for proxy, or install and configure WG/OpenVPN/AWG/etc for VPN mode" \ No newline at end of file diff --git a/podkop/files/etc/init.d/podkop b/podkop/files/etc/init.d/podkop index 7b4bb99..d86ba9d 100755 --- a/podkop/files/etc/init.d/podkop +++ b/podkop/files/etc/init.d/podkop @@ -434,11 +434,7 @@ sing_box_config_vless() { uuid=$(echo "$STRING" | cut -d'/' -f3 | cut -d'@' -f1) server=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f1) - #port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'/' -f1) - port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'?' -f1) - if [[ "$port" == */* ]]; then - port=$(echo "$port" | cut -d'/' -f1) - fi + port=$(echo "$STRING" | cut -d'@' -f2 | cut -d':' -f2 | cut -d'?' -f1 | awk -F'/' '{print $1}') type=$(get_param "type") flow=$(get_param "flow") sni=$(get_param "sni") @@ -473,7 +469,6 @@ sing_box_config_vless() { else . end' "$template_config" >/etc/sing-box/config.json - #! Добавить label в luci } sing_box_config_check() {