fix: onvif_port uses json string tag to accept form values

This commit is contained in:
Claus Lohmar 2026-08-05 12:19:26 +01:00
parent 6bb504258f
commit 8bf32396f6

View file

@ -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"`