diff --git a/internal/module/udp-server.go b/internal/module/udp-server.go index 0bea9b9..5553bfc 100644 --- a/internal/module/udp-server.go +++ b/internal/module/udp-server.go @@ -2,6 +2,7 @@ package module import ( "context" + "encoding/json" "errors" "fmt" "log/slog" @@ -40,6 +41,13 @@ func init() { Minimum: jsonschema.Ptr[float64](1024), Maximum: jsonschema.Ptr[float64](65535), }, + "bufferSize": { + Title: "Buffer Size", + Type: "integer", + Minimum: jsonschema.Ptr[float64](1), + Maximum: jsonschema.Ptr[float64](65535), + Default: json.RawMessage("2048"), + }, }, Required: []string{"ip", "port"}, AdditionalProperties: nil,