Browse Source

[master] Use loopback in tests

Since we couldn't have :: as destination address (it seems), we use ::1,
which should be possible.
Michal 'vorner' Vaner 14 years ago
parent
commit
ca4c3ad8a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/sockcreator/tests/sockcreator_tests.cc

+ 1 - 1
src/bin/sockcreator/tests/sockcreator_tests.cc

@@ -64,7 +64,7 @@ namespace {
 
 // Just helper macros
 #define INADDR_SET(WHAT) do { WHAT.sin_addr.s_addr = INADDR_ANY; } while (0)
-#define IN6ADDR_SET(WHAT) do { WHAT.sin6_addr = in6addr_any; } while (0)
+#define IN6ADDR_SET(WHAT) do { WHAT.sin6_addr = in6addr_loopback; } while (0)
 // If the get_sock returned something useful, listen must work
 #define TCP_CHECK(UNUSED, SOCKET) do { \
         EXPECT_EQ(0, listen(SOCKET, 1)); \