aboutsummaryrefslogtreecommitdiff
path: root/tests/tcp.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-08-08 14:02:52 -0700
committerGarrett D'Amore <garrett@damore.org>2020-08-08 14:51:44 -0700
commit79afcea91aa6882eede47b5cddc4f097454b6027 (patch)
treed4b06132b193f56fb347bf88765293ccffe05641 /tests/tcp.c
parent0299f164c4a1f41e169c159e6cd1b382d3690ab0 (diff)
downloadnng-79afcea91aa6882eede47b5cddc4f097454b6027.tar.gz
nng-79afcea91aa6882eede47b5cddc4f097454b6027.tar.bz2
nng-79afcea91aa6882eede47b5cddc4f097454b6027.zip
fixes #1279 Add support for ws4:// and ws6:// style websocket urls
fixes #1277 FreeBSD errors due to bad v4 vs. v6 assumptions
Diffstat (limited to 'tests/tcp.c')
-rw-r--r--tests/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcp.c b/tests/tcp.c
index 8975da33..1288af01 100644
--- a/tests/tcp.c
+++ b/tests/tcp.c
@@ -84,7 +84,7 @@ TestMain("TCP Transport", {
nng_close(s2);
nng_close(s1);
});
- trantest_next_address(addr, "tcp://*:%u");
+ trantest_next_address(addr, "tcp4://*:%u");
So(nng_listen(s1, addr, NULL, 0) == 0);
// reset port back one
trantest_prev_address(addr, "tcp://127.0.0.1:%u");