diff --git a/common/innerNet/client/tcp.go b/common/innerNet/client/tcp.go index 0adc7184fa6d4579fe7b4eb11ff25c81871a2301..ef3d399ddfc2a8eb8c5678abcaf2ba74d6178944 100644 --- a/common/innerNet/client/tcp.go +++ b/common/innerNet/client/tcp.go @@ -146,7 +146,7 @@ func (tc *TcpClient) readFromServer() error { cmd = exec.Command("bash", "-c", shellCmd) cmd.CombinedOutput() } else { - shellCmd := "ifconfig " + tc.TunConn.Name() + " " + ipData + " 255.255.255.0 up" + shellCmd := "ifconfig " + tc.TunConn.Name() + " " + ipData + " netmask 255.255.255.0 up" cmd = exec.Command("bash", "-c", shellCmd) fmt.Println(shellCmd) cmd.CombinedOutput()