6
Makefile
6
Makefile
@@ -8,11 +8,7 @@ LUCI_TITLE:=LuCI for Tailscale
|
|||||||
LUCI_DEPENDS:=+tailscale
|
LUCI_DEPENDS:=+tailscale
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
|
|
||||||
PKG_VERSION:=1.2.2
|
PKG_VERSION:=1.2.3
|
||||||
|
|
||||||
define Package/luci-app-tailscale/conffiles
|
|
||||||
/etc/config/tailscale
|
|
||||||
endef
|
|
||||||
|
|
||||||
include $(TOPDIR)/feeds/luci/luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
|
|
||||||
|
|||||||
@@ -107,12 +107,12 @@ custom_instance() {
|
|||||||
config_get subnetRoutes $cfg 'subnetRoutes'
|
config_get subnetRoutes $cfg 'subnetRoutes'
|
||||||
if [ -n "$subnetRoutes" ]; then
|
if [ -n "$subnetRoutes" ]; then
|
||||||
i=1
|
i=1
|
||||||
lan_ip=$(uci get network.lan.ipaddr)
|
ts_ip=$(tailscale ip -4)
|
||||||
for route in $subnetRoutes; do
|
for route in $subnetRoutes; do
|
||||||
uci set network.ts_subnet$i='route'
|
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.target=$route
|
||||||
uci set network.ts_subnet$i.gateway=$lan_ip
|
uci set network.ts_subnet$i.gateway=$ts_ip
|
||||||
let i++
|
let i++
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user