prints out default gateway in example
This commit is contained in:
parent
f36e6a6c4f
commit
dad00f68cd
|
@ -24,7 +24,9 @@ int main()
|
||||||
}
|
}
|
||||||
|
|
||||||
address local = guess_local_address(ios);
|
address local = guess_local_address(ios);
|
||||||
|
|
||||||
std::cout << "Local address: " << local << std::endl;
|
std::cout << "Local address: " << local << std::endl;
|
||||||
|
|
||||||
|
address gateway = get_default_gateway(ios, local, ec);
|
||||||
|
std::cout << "Default gateway: " << gateway << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue