fix(vpn): use to_file_path
This commit is contained in:
parent
6e67ff11e0
commit
d928f3f4d5
1 changed files with 2 additions and 1 deletions
|
|
@ -998,7 +998,8 @@ fn add_network() -> Task<crate::app::Message> {
|
|||
|
||||
return Message::AddWireGuardDevice(device, filename.to_owned(), path);
|
||||
} else {
|
||||
super::nm_add_vpn_file("openvpn", response.url().path()).await
|
||||
super::nm_add_vpn_file("openvpn", response.url().to_file_path().unwrap())
|
||||
.await
|
||||
};
|
||||
|
||||
match result {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue