Merge pull request #23 from keeshux/provider-endpoints-endianness
Provider IPv4 endpoints appear reversed
This commit is contained in:
commit
35882e24d2
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue