Merge pull request #315 from Taknok/keepalive

Fix keepalive
This commit is contained in:
Jaime Pillora
2022-01-31 13:22:48 +11:00
committed by GitHub
+5 -4
View File
@@ -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
}