diff --git a/Passepartout/Sources/Services/Pool.swift b/Passepartout/Sources/Services/Pool.swift index d7d42ad3..0d23aa92 100644 --- a/Passepartout/Sources/Services/Pool.swift +++ b/Passepartout/Sources/Services/Pool.swift @@ -63,7 +63,7 @@ struct Pool: Codable, Comparable, CustomStringConvertible { // XXX: inefficient, can't easily use lazy on struct func addresses(sorted: Bool) -> [String] { var addrs = (sorted ? numericAddresses.sorted() : numericAddresses).map { - return DNSResolver.string(fromIPv4: $0) + return DNSResolver.string(fromIPv4: UInt32(bigEndian: $0)) } addrs.insert(hostname, at: 0) return addrs