Skip to content

Commit d543b13

Browse files
committed
fix: subnet routes & bump version
fix #26
1 parent 4f81400 commit d543b13

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Makefile

+1-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ LUCI_TITLE:=LuCI for Tailscale
88
LUCI_DEPENDS:=+tailscale
99
LUCI_PKGARCH:=all
1010

11-
PKG_VERSION:=1.2.2
12-
13-
define Package/luci-app-tailscale/conffiles
14-
/etc/config/tailscale
15-
endef
11+
PKG_VERSION:=1.2.3
1612

1713
include $(TOPDIR)/feeds/luci/luci.mk
1814

root/etc/init.d/tailscale

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ custom_instance() {
107107
config_get subnetRoutes $cfg 'subnetRoutes'
108108
if [ -n "$subnetRoutes" ]; then
109109
i=1
110-
lan_ip=$(uci get network.lan.ipaddr)
110+
ts_ip=$(tailscale ip -4)
111111
for route in $subnetRoutes; do
112112
uci set network.ts_subnet$i='route'
113-
uci set network.ts_subnet$i.interface='lan'
113+
uci set network.ts_subnet$i.interface='tailscale'
114114
uci set network.ts_subnet$i.target=$route
115-
uci set network.ts_subnet$i.gateway=$lan_ip
115+
uci set network.ts_subnet$i.gateway=$ts_ip
116116
let i++
117117
done
118118
else

0 commit comments

Comments
 (0)