src/client/http_client.rs: new prefix options

This commit is contained in:
Dietmar Maurer
2020-01-27 09:34:02 +01:00
parent 5a74756c15
commit 5030b7cea4
3 changed files with 89 additions and 87 deletions

View File

@ -35,6 +35,7 @@ fn connect() -> Result<HttpClient, Error> {
let uid = nix::unistd::Uid::current();
let mut options = HttpClientOptions::new()
.prefix(Some("proxmox-backup".to_string()))
.verify_cert(false); // not required for connection to localhost
let client = if uid.is_root() {