From 6b4f139e7f954c1d8f8e23584f4e75adb54dc5e8 Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Mon, 25 Sep 2023 11:17:56 +0100 Subject: [PATCH] fix json attributes --- server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.go b/server.go index 6359505..015ecaf 100644 --- a/server.go +++ b/server.go @@ -75,11 +75,11 @@ func (s *Server) handleConn(conn *net.TCPConn) { ////////////////////////////////////////////////////////////////////////// type options struct { - Port uint `json:port` - Address string `json:address` - Registry string `json:registry` + Port uint `json:"port"` + Address string `json:"address"` + Registry string `json:"registry"` Datapath string - Header string `json:header` + Header string `json:"header"` } func parseFlags() options {