From 8bf32396f6fcee2e49dd37ef29cbfff910f7f545 Mon Sep 17 00:00:00 2001 From: cclohmar Date: Wed, 5 Aug 2026 12:19:26 +0100 Subject: [PATCH] fix: onvif_port uses json string tag to accept form values --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index e33e554..e02aa66 100644 --- a/config.go +++ b/config.go @@ -38,7 +38,7 @@ type CameraConfig struct { IP string `yaml:"ip" json:"ip"` Username string `yaml:"username" json:"username"` Password string `yaml:"password" json:"password"` - ONVIFPort int `yaml:"onvif_port" json:"onvif_port"` + ONVIFPort int `yaml:"onvif_port" json:"onvif_port,string"` RTSPMain string `yaml:"rtsp_main" json:"rtsp_main"` RTSPSub string `yaml:"rtsp_sub" json:"rtsp_sub"` Description string `yaml:"description" json:"description"`