Skip to content

Commit 46ff274

Browse files
authored
fix(binding-coap): include IPv6 when no address specified
This is just a strawman hotfix to start the work on fixing IPv6 support for the CoAP server. Untested on IPv4-only machines and not considering the `net.ipv6.bindv6only` sysctl parameter (depends on the expectation of the user).
1 parent 28af07c commit 46ff274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/binding-coap/src/coap-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class CoapServer implements ProtocolServer {
8383

8484
constructor(config?: CoapServerConfig) {
8585
this.port = config?.port ?? 5683;
86-
this.address = config?.address;
86+
this.address = config?.address ?? "::";
8787

8888
// WoT-specific content formats
8989
registerFormat(ContentSerdes.JSON_LD, 2100);

0 commit comments

Comments
 (0)