From 46ff27447d2e58bb0df055edb14b2bfe2b7de2b2 Mon Sep 17 00:00:00 2001 From: Matthias Kovatsch Date: Fri, 31 Oct 2025 11:24:08 +0000 Subject: [PATCH] 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). --- packages/binding-coap/src/coap-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/binding-coap/src/coap-server.ts b/packages/binding-coap/src/coap-server.ts index d31acfa72..dff6656ed 100644 --- a/packages/binding-coap/src/coap-server.ts +++ b/packages/binding-coap/src/coap-server.ts @@ -83,7 +83,7 @@ export default class CoapServer implements ProtocolServer { constructor(config?: CoapServerConfig) { this.port = config?.port ?? 5683; - this.address = config?.address; + this.address = config?.address ?? "::"; // WoT-specific content formats registerFormat(ContentSerdes.JSON_LD, 2100);