config remove duplicates from address lists

This commit is contained in:
Michael Davidsaver
2021-04-17 08:01:54 -07:00
parent 93b5708471
commit 78940d5530
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ void testDefs()
testEq(conf.udp_port, 1234);
testFalse(conf.autoAddrList);
testEq(conf.addressList, std::vector<std::string>({"1.2.1.2:1234", "4.3.2.1:1234"}));
testEq(conf.interfaces, std::vector<std::string>({"1.2.3.4", "1.1.1.1"}));
testEq(conf.interfaces, std::vector<std::string>({"1.1.1.1", "1.2.3.4"}));
}
{
@@ -141,7 +141,7 @@ void testDefs()
testEq(conf.tcp_port, 5678);
testFalse(conf.auto_beacon);
testEq(conf.beaconDestinations, std::vector<std::string>({"1.2.1.2:1234", "4.3.2.1:1234"}));
testEq(conf.interfaces, std::vector<std::string>({"1.2.3.4:5678", "1.1.1.1:5678"}));
testEq(conf.interfaces, std::vector<std::string>({"1.1.1.1:5678", "1.2.3.4:5678"}));
}
}