From 882af2948a62199619bb84215c7820ea9a9b6793 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Thu, 26 Mar 2026 18:56:03 -0500 Subject: [PATCH] fix JSON schema of net.udp.server --- internal/module/udp-server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/module/udp-server.go b/internal/module/udp-server.go index 5553bfc..3815784 100644 --- a/internal/module/udp-server.go +++ b/internal/module/udp-server.go @@ -32,8 +32,9 @@ func init() { Type: "object", Properties: map[string]*jsonschema.Schema{ "ip": { - Title: "IP", - Type: "string", + Title: "IP", + Type: "string", + Default: json.RawMessage(`"0.0.0.0"`), }, "port": { Title: "Port", @@ -49,7 +50,7 @@ func init() { Default: json.RawMessage("2048"), }, }, - Required: []string{"ip", "port"}, + Required: []string{"port"}, AdditionalProperties: nil, }, New: func(moduleConfig config.ModuleConfig) (common.Module, error) {