diff --git a/Makefile b/Makefile index ccfe51d..ca48cf8 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ LUCI_TITLE:=LuCI for Tailscale LUCI_DEPENDS:=+tailscale +jsonfilter +ucode LUCI_PKGARCH:=all -PKG_VERSION:=1.0.1 +PKG_VERSION:=1.0.2 include $(TOPDIR)/feeds/luci/luci.mk diff --git a/README.md b/README.md index bde3a53..feead1e 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Tailscale is a zero config VPN for building secure networks. ```shell opkg update - opkg install --force-overwrite luci-app-tailscale_*_all.ipk + opkg install --force-overwrite /tmp/luci-app-tailscale_*_all.ipk ``` -------------- diff --git a/root/etc/init.d/tailscale b/root/etc/init.d/tailscale index 3322e0d..6ff2734 100755 --- a/root/etc/init.d/tailscale +++ b/root/etc/init.d/tailscale @@ -62,8 +62,11 @@ custom_instance() { do echo "tailscale interface $i is started!" if [ -z "$(uci -q get network.$i)" ]; then + ts_ip=$(tailscale ip -4) uci set network.$i=interface uci set network.$i.proto='static' + uci set network.$i.ipaddr=$ts_ip + uci set network.$i.netmask='255.0.0.0' uci set network.$i.device=$i fi done