Skip to content

Commit

Permalink
Fix keepalive
Browse files Browse the repository at this point in the history
Pass the client config keepalive to the tunnel config.
  • Loading branch information
Taknok committed Nov 27, 2021
1 parent 60d62c6 commit d17765d
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 d17765d

Please sign in to comment.