evsocket::canIPv6 once

This commit is contained in:
Michael Davidsaver
2021-12-12 18:18:22 -08:00
parent 89fd1bba7a
commit 1be0477ee6
11 changed files with 26 additions and 12 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ MAIN(testsock)
testSetup();
// check for behavior when binding ipv4 and ipv6 to the same socket
// as a function of socket type and order.
if(evsocket::canIPv6()) {
if(evsocket::canIPv6) {
// IPv4 and v6 loopback addresses are entirely distinct,
// so no problem binding to both w/ or w/o IPV6_V6ONLY
test_bind46("127.0.0.1" , "::1" , SOCK_DGRAM , 0);