fix incorrect onvif url on upgrade

This commit is contained in:
Scott Lamb 2021-10-26 14:14:28 -07:00
parent 7b86db3c03
commit 96cc02d48e

View File

@ -255,7 +255,7 @@ fn copy_cameras(tx: &rusqlite::Transaction) -> Result<(), Error> {
let config = CameraConfig { let config = CameraConfig {
description: description.take().unwrap_or_default(), description: description.take().unwrap_or_default(),
onvif_base_url: onvif_host onvif_base_url: onvif_host
.map(|h| Url::parse(&format!("rtsp://{}/", h))) .map(|h| Url::parse(&format!("http://{}/", h)))
.transpose()?, .transpose()?,
username: username.take().unwrap_or_default(), username: username.take().unwrap_or_default(),
password: password.take().unwrap_or_default(), password: password.take().unwrap_or_default(),