Browse Source

Update ip

LinkLeong 2 năm trước cách đây
mục cha
commit
d8dd815baa
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      route/v1/zerotier.go

+ 2 - 0
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