diff --git a/CHANGELOG.md b/CHANGELOG.md index ccc17ffe..036396cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Incorrect compression warnings when importing host configurations. [#20](https://github.com/keeshux/passepartout-ios/pull/20) +- Regression in provider endpoints, IPv4 appearing reversed. [#23](https://github.com/keeshux/passepartout-ios/pull/23) ## 1.0 RC1 1194 (2018-11-01) 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