aboutsummaryrefslogtreecommitdiff
path: root/src/core/url.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-21 22:26:22 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-21 22:26:22 -0800
commit7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62 (patch)
tree342050510f6a8770c164042e692a2d8f975f92c0 /src/core/url.c
parent8abf99028c3c3d26f0eba76fa4b3437c082a8874 (diff)
downloadnng-7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62.tar.gz
nng-7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62.tar.bz2
nng-7ea8abadec355eb7ea9f71fc2e2bdd73c1c77c62.zip
Use 32-bit port numbers.
While TCP and UDP port numbers are 16-bits, ZT uses a larger (24-bit) port number.
Diffstat (limited to 'src/core/url.c')
-rw-r--r--src/core/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/url.c b/src/core/url.c
index 7af6a822..e436b0e1 100644
--- a/src/core/url.c
+++ b/src/core/url.c
@@ -697,7 +697,7 @@ nng_url_scheme(const nng_url *url)
return (url->u_scheme);
}
-uint16_t
+uint32_t
nng_url_port(const nng_url *url)
{
return (url->u_port);