mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
fix(HostEntry): DNS HostEntry returns multiple entries #3303
This commit is contained in:
@@ -76,6 +76,14 @@ public:
|
||||
/// for the host.
|
||||
|
||||
private:
|
||||
template <typename C>
|
||||
void removeDuplicates(C& list)
|
||||
{
|
||||
std::sort(list.begin(), list.end());
|
||||
auto last = std::unique(list.begin(), list.end());
|
||||
list.erase(last, list.end());
|
||||
}
|
||||
|
||||
std::string _name;
|
||||
AliasList _aliases;
|
||||
AddressList _addresses;
|
||||
|
||||
Reference in New Issue
Block a user