listen on :: instead of 0.0.0.0

Since this supports both ipv6 & ipv4 unless v6only is
explicitly enabled.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-01-16 14:17:50 +01:00
parent cf16af2ab3
commit 6a50b77e72

View File

@ -1,6 +1,7 @@
extern crate proxmox_backup; extern crate proxmox_backup;
use std::sync::Arc; use std::sync::Arc;
use std::net::{Ipv6Addr, SocketAddrV6};
use proxmox_backup::api::schema::*; use proxmox_backup::api::schema::*;
use proxmox_backup::api::router::*; use proxmox_backup::api::router::*;
@ -64,7 +65,7 @@ fn main() {
}, },
} }
let addr = ([0, 0, 0, 0], 8007).into(); let addr = SocketAddrV6::new(Ipv6Addr::new(0,0,0,0,0,0,0,0), 8007, 0, 0).into();
lazy_static!{ lazy_static!{
static ref ROUTER: Router = proxmox_backup::api3::router(); static ref ROUTER: Router = proxmox_backup::api3::router();