Add enable check nohostroute interface AWG

This commit is contained in:
CodeRoK7
2025-03-06 01:18:59 +05:00
committed by GitHub
parent 4eefc4e6d1
commit 471554aaf9

View File

@@ -434,6 +434,7 @@ uci set network.${INTERFACE_NAME}.awg_h1=$H1
uci set network.${INTERFACE_NAME}.awg_h2=$H2
uci set network.${INTERFACE_NAME}.awg_h3=$H3
uci set network.${INTERFACE_NAME}.awg_h4=$H4
uci set network.${INTERFACE_NAME}.nohostroute='1'
uci set network.@${CONFIG_NAME}[-1].description="${INTERFACE_NAME}_peer"
uci set network.@${CONFIG_NAME}[-1].public_key=$PublicKey
uci set network.@${CONFIG_NAME}[-1].endpoint_host=$EndpointIP
@@ -582,4 +583,4 @@ ifup $INTERFACE_NAME
printf "\033[32;1mService Podkop restart...\033[0m\n"
service podkop restart
printf "\033[32;1mConfigured completed...\033[0m\n"
printf "\033[32;1mConfigured completed...\033[0m\n"