Skip to content

Commit

Permalink
Merge pull request #315 from Taknok/keepalive
Browse files Browse the repository at this point in the history
Fix keepalive
  • Loading branch information
jpillora committed Jan 31, 2022
2 parents 60d62c6 + d17765d commit a47b1b3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a47b1b3

Please sign in to comment.