fix: onvif_port uses json string tag to accept form values
This commit is contained in:
parent
6bb504258f
commit
8bf32396f6
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ type CameraConfig struct {
|
||||||
IP string `yaml:"ip" json:"ip"`
|
IP string `yaml:"ip" json:"ip"`
|
||||||
Username string `yaml:"username" json:"username"`
|
Username string `yaml:"username" json:"username"`
|
||||||
Password string `yaml:"password" json:"password"`
|
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"`
|
RTSPMain string `yaml:"rtsp_main" json:"rtsp_main"`
|
||||||
RTSPSub string `yaml:"rtsp_sub" json:"rtsp_sub"`
|
RTSPSub string `yaml:"rtsp_sub" json:"rtsp_sub"`
|
||||||
Description string `yaml:"description" json:"description"`
|
Description string `yaml:"description" json:"description"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue