Commit 7a7dc17a authored by Stephen Morris's avatar Stephen Morris
Browse files

[2784] Minor change to error message when wrong IP switch is used

parent 30fc9695
...@@ -597,12 +597,12 @@ TestControl::openSocket() const { ...@@ -597,12 +597,12 @@ TestControl::openSocket() const {
uint8_t family = (options.getIpVersion() == 6) ? AF_INET6 : AF_INET; uint8_t family = (options.getIpVersion() == 6) ? AF_INET6 : AF_INET;
IOAddress remoteaddr(servername); IOAddress remoteaddr(servername);
// Check for mismatch between ip option and server // Check for mismatch between IP option and server address
if (family != remoteaddr.getFamily()) { if (family != remoteaddr.getFamily()) {
isc_throw(InvalidParameter, isc_throw(InvalidParameter,
"Values for Ip version: " << "Values for IP version: " <<
static_cast<unsigned int>(options.getIpVersion()) static_cast<unsigned int>(options.getIpVersion()) <<
<< " and Server:" << servername << " are mismatched."); " and server address: " << servername << " are mismatched.");
} }
if (port == 0) { if (port == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment