Skip to content

Commit a47b1b3

Browse files
authored
Merge pull request #315 from Taknok/keepalive
Fix keepalive
2 parents 60d62c6 + d17765d commit a47b1b3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

client/client.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,11 @@ func NewClient(c *Config) (*Client, error) {
176176
}
177177
//prepare client tunnel
178178
client.tunnel = tunnel.New(tunnel.Config{
179-
Logger: client.Logger,
180-
Inbound: true, //client always accepts inbound
181-
Outbound: hasReverse,
182-
Socks: hasReverse && hasSocks,
179+
Logger: client.Logger,
180+
Inbound: true, //client always accepts inbound
181+
Outbound: hasReverse,
182+
Socks: hasReverse && hasSocks,
183+
KeepAlive: client.config.KeepAlive,
183184
})
184185
return client, nil
185186
}

0 commit comments

Comments
 (0)