Send PUSH_REQUEST immediately after auth
First call would always fail otherwise.
This commit is contained in:
parent
40139cbef0
commit
2c56a8ea95
|
@ -57,8 +57,6 @@ extension CoreConfiguration {
|
||||||
|
|
||||||
static let retransmissionLimit = 0.1
|
static let retransmissionLimit = 0.1
|
||||||
|
|
||||||
static let softResetDelay = 5.0
|
|
||||||
|
|
||||||
static let softNegotiationTimeout = 120.0
|
static let softNegotiationTimeout = 120.0
|
||||||
|
|
||||||
// MARK: Authentication
|
// MARK: Authentication
|
||||||
|
|
|
@ -871,8 +871,9 @@ public class OpenVPNSession: Session {
|
||||||
}
|
}
|
||||||
|
|
||||||
negotiationKey.controlState = .preIfConfig
|
negotiationKey.controlState = .preIfConfig
|
||||||
nextPushRequestDate = Date().addingTimeInterval(isRenegotiating ? CoreConfiguration.OpenVPN.softResetDelay : CoreConfiguration.OpenVPN.retransmissionLimit)
|
nextPushRequestDate = Date()
|
||||||
pushRequest()
|
pushRequest()
|
||||||
|
nextPushRequestDate?.addTimeInterval(isRenegotiating ? CoreConfiguration.OpenVPN.pushRequestInterval : CoreConfiguration.OpenVPN.retransmissionLimit)
|
||||||
}
|
}
|
||||||
|
|
||||||
for message in auth.parseMessages() {
|
for message in auth.parseMessages() {
|
||||||
|
|
Loading…
Reference in New Issue