From d8dd815baaf428661fd0bdcf1063f46b45585752 Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Wed, 19 Jul 2023 07:46:23 +0100 Subject: [PATCH] Update ip --- route/v1/zerotier.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/route/v1/zerotier.go b/route/v1/zerotier.go index d3d8f4f..741f3ae 100644 --- a/route/v1/zerotier.go +++ b/route/v1/zerotier.go @@ -295,7 +295,9 @@ func getZTIP(routes string) (ip, start, end, cidr string) { for i := range startIP { endIP[i] |= ^ipNet.Mask[i] } + startIP[3] = 1 start = startIP.String() + endIP[3] = 254 end = endIP.String() ipt := ipNet ipt.IP[3] = 1