aboutsummaryrefslogtreecommitdiff
path: root/src/api_server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-12 19:41:19 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-12 19:41:19 +0200
commit9f8b3b5a1820f575e6621fd5f4f6cdf47b0a7742 (patch)
tree3dc1a8b6dd08c0d913a088fc7dc0299be125c8b1 /src/api_server.rs
parentc788fc9f9e2c9128ea0dd5f28c1bafe8ba3b369c (diff)
downloadgarage-9f8b3b5a1820f575e6621fd5f4f6cdf47b0a7742.tar.gz
garage-9f8b3b5a1820f575e6621fd5f4f6cdf47b0a7742.zip
TLS for command line client
Diffstat (limited to 'src/api_server.rs')
-rw-r--r--src/api_server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api_server.rs b/src/api_server.rs
index 13fd5038..056d2aaf 100644
--- a/src/api_server.rs
+++ b/src/api_server.rs
@@ -1,5 +1,5 @@
use std::collections::VecDeque;
-use std::net::SocketAddr;
+use std::net::{Ipv6Addr, SocketAddr};
use std::sync::Arc;
use futures::future::Future;
@@ -24,7 +24,7 @@ pub async fn run_api_server(
garage: Arc<Garage>,
shutdown_signal: impl Future<Output = ()>,
) -> Result<(), Error> {
- let addr = ([0, 0, 0, 0, 0, 0, 0, 0], garage.system.config.api_port).into();
+ let addr = (Ipv6Addr::LOCALHOST, garage.system.config.api_port).into();
let service = make_service_fn(|conn: &AddrStream| {
let garage = garage.clone();