mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-12-24 11:51:13 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user