Fix broker connectivity: support scoped IPv6 link-local addresses

Add optional broker_ip and broker_tls_name config fields so the TCP
dial target can be a scoped IPv6 address (fe80::...%eth0) while TLS
certificate verification still uses the broker hostname.

Also revert to alpine/static build; CGO was not needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-10 08:17:30 +02:00
parent d59b3fd0cd
commit 2dcfaeacb7
2 changed files with 17 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.24-alpine AS builder
FROM golang:1.24-bookworm AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download