From 23a38d766780f4749945d84316b4e0a71e707b15 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 4 Mar 2018 17:04:11 -0800 Subject: fixes #262 NNG_OPT_URL should be resolved This causes TCP, TLS, and ZT endpoints to resolve any wildcards, and even IP addresses, when reporting the listen URL. The dialer URL is reported unresolved. Test cases for this are added as well, and nngcat actually reports this if --verbose is supplied. --- src/supplemental/http/http_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/supplemental') diff --git a/src/supplemental/http/http_server.c b/src/supplemental/http/http_server.c index 503ab1dd..7feadc96 100644 --- a/src/supplemental/http/http_server.c +++ b/src/supplemental/http/http_server.c @@ -895,7 +895,7 @@ http_server_start(nni_http_server *s) if (rv != 0) { return (rv); } - if ((rv = nni_plat_tcp_ep_listen(s->tep)) != 0) { + if ((rv = nni_plat_tcp_ep_listen(s->tep, NULL)) != 0) { nni_plat_tcp_ep_fini(s->tep); s->tep = NULL; return (rv); -- cgit v1.2.3-70-g09d2