mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
coap_uri.c: Correctly detect port in coap_uri_into_options()
This commit is contained in:
1 parent
621fd20c2b
commit
e10a0d0eff
1 file changed
+1
-1
+1
-1
@@ -252,7 +252,7 @@ coap_uri_into_options(coap_uri_t *uri,
|
||||
add_option = 1;
|
||||
break;
|
||||
default:
|
||||
if (uri->port != coap_uri_scheme_is_secure(uri))
|
||||
if (uri->port != (coap_uri_scheme_is_secure(uri) ? 5684 : 5683))
|
||||
add_option = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user