degrade from crashing to debug assert, upon failure we return a fully (overly)

redacted string
pull/1/head
Michael Kirk 7 years ago
parent 54059532f7
commit 3c450eeeaa

@ -1163,7 +1163,7 @@ class HardenedRTCSessionDescription {
options: .caseInsensitive) options: .caseInsensitive)
return regex.stringByReplacingMatches(in: sdp, options: [], range: NSRange(location: 0, length: sdp.count), withTemplate: "[ REDACTED_IPV6_ADDRESS ]") return regex.stringByReplacingMatches(in: sdp, options: [], range: NSRange(location: 0, length: sdp.count), withTemplate: "[ REDACTED_IPV6_ADDRESS ]")
} catch { } catch {
owsFail("Could not redact IPv6 addresses.") owsFailDebug("Could not redact IPv6 addresses.")
return "[Could not redact IPv6 addresses.]" return "[Could not redact IPv6 addresses.]"
} }
#endif #endif

Loading…
Cancel
Save