fix: subnet routes & bump version

fix #26
This commit is contained in:
asvow
2024-11-06 17:43:16 +08:00
parent 4f81400a9a
commit d543b13ffe
2 changed files with 4 additions and 8 deletions

View File

@@ -107,12 +107,12 @@ custom_instance() {
config_get subnetRoutes $cfg 'subnetRoutes'
if [ -n "$subnetRoutes" ]; then
i=1
lan_ip=$(uci get network.lan.ipaddr)
ts_ip=$(tailscale ip -4)
for route in $subnetRoutes; do
uci set network.ts_subnet$i='route'
uci set network.ts_subnet$i.interface='lan'
uci set network.ts_subnet$i.interface='tailscale'
uci set network.ts_subnet$i.target=$route
uci set network.ts_subnet$i.gateway=$lan_ip
uci set network.ts_subnet$i.gateway=$ts_ip
let i++
done
else