diff --git a/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift b/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift index 077ee1e..2219759 100644 --- a/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift +++ b/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift @@ -143,7 +143,7 @@ class ConfTextStorage: NSTextStorage { .font: defaultFont ] backingStore.setAttributes(defaultAttributes, range: fullTextRange) - var spans = highlight_config(backingStore.string.cString(using: String.Encoding.utf8))! + var spans = highlight_config(backingStore.string)! evaluateExcludePrivateIPs(highlightSpans: spans) while spans.pointee.type != HighlightEnd {