todo needs to fighter out why needs to set network mask to 0 on Windows otherwise it will not work

This commit is contained in:
p_caiwfeng
2022-01-09 17:36:01 +08:00
parent ad779a9123
commit 7875e03744

View File

@@ -160,10 +160,9 @@ func (c *ConnectOptions) portForward(ctx context.Context) error {
}
func (c *ConnectOptions) startLocalTunServe(ctx context.Context) (err error) {
// todo fighter it out why
if util.IsWindows() {
c.localTunIP.Mask = net.CIDRMask(0, 32)
} else {
c.localTunIP.Mask = net.CIDRMask(24, 32)
}
var list = []string{trafficManager.String()}
for _, ipNet := range c.cidrs {