Skip to content

Commit

Permalink
Properly separate newline-separated strings into a list (#2382)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Nov 6, 2024
1 parent dc03551 commit 71ca66a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deltachat-ios/DC/DcContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -748,10 +748,9 @@ public class DcContext {
}

public func getProxies() -> [String] {
guard let proxyURLStrings = getConfig("proxy_url"),
let proxies = proxyURLStrings.split(separator: "\n") as? [String]
else { return [] }
guard let proxyURLStrings = getConfig("proxy_url") else { return [] }

let proxies = proxyURLStrings.components(separatedBy: "\n")
return proxies
}

Expand Down

0 comments on commit 71ca66a

Please sign in to comment.