parent
e880192be5
commit
d756948872
|
@ -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