config remove duplicates from address lists
This commit is contained in:
+2
-2
@@ -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"}));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user