diff --git a/client/client.go b/client/client.go index 32338beb..49c7aeb1 100644 --- a/client/client.go +++ b/client/client.go @@ -176,10 +176,11 @@ func NewClient(c *Config) (*Client, error) { } //prepare client tunnel client.tunnel = tunnel.New(tunnel.Config{ - Logger: client.Logger, - Inbound: true, //client always accepts inbound - Outbound: hasReverse, - Socks: hasReverse && hasSocks, + Logger: client.Logger, + Inbound: true, //client always accepts inbound + Outbound: hasReverse, + Socks: hasReverse && hasSocks, + KeepAlive: client.config.KeepAlive, }) return client, nil }