]> git.proxmox.com Git - proxmox-backup.git/commitdiff
listen on :: instead of 0.0.0.0
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 16 Jan 2019 13:17:50 +0000 (14:17 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 16 Jan 2019 13:18:16 +0000 (14:18 +0100)
Since this supports both ipv6 & ipv4 unless v6only is
explicitly enabled.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/bin/proxmox-backup-api.rs

index 84dd7f66ebbe556ca7ca5d6ce7fb79da269ff86f..dfed59837bc05964ae6e9667b1e800f3e602b567 100644 (file)
@@ -1,6 +1,7 @@
 extern crate proxmox_backup;
 
 use std::sync::Arc;
+use std::net::{Ipv6Addr, SocketAddrV6};
 
 use proxmox_backup::api::schema::*;
 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!{
        static ref ROUTER: Router = proxmox_backup::api3::router();