From cef6e70c0b3e92e36b6895e7d6e981b00c702f9b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 22 Nov 2024 18:16:24 -0800 Subject: Select transport using raw URL string. This is done so that we can provide transport specific logic for URL parsing later (we're going to want this for ZeroTier for example.) --- tests/trantest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/trantest.h b/tests/trantest.h index 2434171a..9c3b2efb 100644 --- a/tests/trantest.h +++ b/tests/trantest.h @@ -117,9 +117,9 @@ trantest_init(trantest *tt, const char *addr) So(nng_rep_open(&tt->repsock) == 0); nng_url *url; - So(nng_url_parse(&url, tt->addr) == 0); - tt->tran = nni_sp_tran_find(url); + tt->tran = nni_sp_tran_find(addr); So(tt->tran != NULL); + So(nng_url_parse(&url, tt->addr) == 0); nng_url_free(url); } -- cgit v1.2.3-70-g09d2