mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-09 21:49:46 -05:00
fix incorrect onvif url on upgrade
This commit is contained in:
@@ -255,7 +255,7 @@ fn copy_cameras(tx: &rusqlite::Transaction) -> Result<(), Error> {
|
||||
let config = CameraConfig {
|
||||
description: description.take().unwrap_or_default(),
|
||||
onvif_base_url: onvif_host
|
||||
.map(|h| Url::parse(&format!("rtsp://{}/", h)))
|
||||
.map(|h| Url::parse(&format!("http://{}/", h)))
|
||||
.transpose()?,
|
||||
username: username.take().unwrap_or_default(),
|
||||
password: password.take().unwrap_or_default(),
|
||||
|
||||
Reference in New Issue
Block a user