mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-26 15:15:56 -05:00
fix incorrect onvif url on upgrade
This commit is contained in:
parent
7b86db3c03
commit
96cc02d48e
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user