Parsing: Error on duplicate entries
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -45,6 +45,8 @@ extension TunnelConfiguration.ParseError: WireGuardAppError {
|
||||
return (tr(format: "macAlertUnrecognizedPeerKey (%@)", value), tr("macAlertInfoUnrecognizedPeerKey"))
|
||||
case .multiplePeersWithSamePublicKey:
|
||||
return (tr("alertInvalidPeerMessagePublicKeyDuplicated"), "")
|
||||
case .multipleEntriesForKey(let value):
|
||||
return (tr(format: "macAlertMultipleEntriesForKey (%@)", value), "")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user