Force disconnect to prevent domain spamming (optional in advanced settings)

This commit is contained in:
relikd
2020-09-12 22:28:11 +02:00
parent 36a8f0b97b
commit c1fe258b0d
7 changed files with 150 additions and 16 deletions

View File

@@ -161,4 +161,12 @@ struct VPNAppMessage {
static func isRecording(_ state: CurrentRecordingState) -> Self {
.init("recording-now:\(state.rawValue)")
}
/// Triggered whenever user taps on the switch in settings
static func disconnectUnresolvable(_ state: Bool) -> Self {
.init("disconnect-unresolvable:\(state ? 1 : 0)")
}
/// Triggered whenever user taps on the switch in settings
static func disconnectSWCD(_ state: Bool) -> Self {
.init("disconnect-swcd:\(state ? 1 : 0)")
}
}