Fix interpretation of 0 seconds
0 keep-alive = never 0 reneg seconds = never
This commit is contained in:
parent
c4bfa12079
commit
7b96247c72
|
@ -526,12 +526,12 @@ extension TunnelKitProvider {
|
||||||
}
|
}
|
||||||
log.info("\tMTU: \(mtu)")
|
log.info("\tMTU: \(mtu)")
|
||||||
log.info("\tCompression framing: \(compressionFraming)")
|
log.info("\tCompression framing: \(compressionFraming)")
|
||||||
if let keepAliveSeconds = keepAliveSeconds {
|
if let keepAliveSeconds = keepAliveSeconds, keepAliveSeconds > 0 {
|
||||||
log.info("\tKeep-alive: \(keepAliveSeconds) seconds")
|
log.info("\tKeep-alive: \(keepAliveSeconds) seconds")
|
||||||
} else {
|
} else {
|
||||||
log.info("\tKeep-alive: default")
|
log.info("\tKeep-alive: never")
|
||||||
}
|
}
|
||||||
if let renegotiatesAfterSeconds = renegotiatesAfterSeconds {
|
if let renegotiatesAfterSeconds = renegotiatesAfterSeconds, renegotiatesAfterSeconds > 0 {
|
||||||
log.info("\tRenegotiation: \(renegotiatesAfterSeconds) seconds")
|
log.info("\tRenegotiation: \(renegotiatesAfterSeconds) seconds")
|
||||||
} else {
|
} else {
|
||||||
log.info("\tRenegotiation: never")
|
log.info("\tRenegotiation: never")
|
||||||
|
|
Loading…
Reference in New Issue