From 9102844b6f623af0454dc3b66085eb4ec3a063b3 Mon Sep 17 00:00:00 2001 From: Slava-Shchipunov Date: Sat, 26 Oct 2024 03:09:30 +0700 Subject: [PATCH] fix: fix allowed_ips set --- amneziawg-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amneziawg-install.sh b/amneziawg-install.sh index cae3320..ef68675 100644 --- a/amneziawg-install.sh +++ b/amneziawg-install.sh @@ -160,7 +160,8 @@ configure_amneziawg_interface() { uci set network.@${CONFIG_NAME}[0].route_allowed_ips='1' uci set network.@${CONFIG_NAME}[0].persistent_keepalive='25' uci set network.@${CONFIG_NAME}[0].endpoint_host=$AWG_ENDPOINT_INT - uci set network.@${CONFIG_NAME}[0].allowed_ips='0.0.0.0/0 ::/0' + uci set network.@${CONFIG_NAME}[0].allowed_ips='0.0.0.0/0' + uci add_list network.@${CONFIG_NAME}[0].allowed_ips='::/0' uci set network.@${CONFIG_NAME}[0].endpoint_port=$AWG_ENDPOINT_PORT_INT uci commit network