aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-01-17 22:49:37 -0800
committerGarrett D'Amore <garrett@damore.org>2018-01-17 22:49:37 -0800
commit338706c2420ce3e51b546a6ba2574e10346a511b (patch)
tree6bcb07f219936e5780eecf683309660a810f8f3e /src/transport
parent4c637fe5e4624eeaac55ed77deabdf427d2ba7a6 (diff)
downloadnng-338706c2420ce3e51b546a6ba2574e10346a511b.tar.gz
nng-338706c2420ce3e51b546a6ba2574e10346a511b.tar.bz2
nng-338706c2420ce3e51b546a6ba2574e10346a511b.zip
fixes #211 Restore handling of '*' in URL logic
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/tcp/tcp.c3
-rw-r--r--src/transport/tls/tls.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/transport/tcp/tcp.c b/src/transport/tcp/tcp.c
index a361da53..9110e31c 100644
--- a/src/transport/tcp/tcp.c
+++ b/src/transport/tcp/tcp.c
@@ -564,8 +564,7 @@ nni_tcp_ep_init(void **epp, const char *addr, nni_sock *sock, int mode)
return (rv);
}
- if ((strlen(url->u_hostname) == 0) ||
- (strcmp(url->u_hostname, "*") == 0)) {
+ if (strlen(url->u_hostname) == 0) {
host = NULL;
} else {
host = url->u_hostname;
diff --git a/src/transport/tls/tls.c b/src/transport/tls/tls.c
index 9832c36c..753a1e75 100644
--- a/src/transport/tls/tls.c
+++ b/src/transport/tls/tls.c
@@ -580,8 +580,7 @@ nni_tls_ep_init(void **epp, const char *addr, nni_sock *sock, int mode)
return (rv);
}
- if ((strlen(url->u_hostname) == 0) ||
- (strcmp(url->u_hostname, "*") == 0)) {
+ if (strlen(url->u_hostname) == 0) {
host = NULL;
} else {
host = url->u_hostname;