From 6ef73ae20695e8d44d427efa158b4447b5f38d86 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Sat, 10 Dec 2016 11:20:01 -0800 Subject: [PATCH] switch test server to 127.0.0.1 --- tests/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/server.rs b/tests/server.rs index 33b75cc..749b8fd 100644 --- a/tests/server.rs +++ b/tests/server.rs @@ -17,7 +17,7 @@ impl Server { static DEFAULT_USER_AGENT: &'static str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION")); pub fn spawn(txns: Vec<(Vec, Vec)>) -> Server { - let listener = net::TcpListener::bind("0.0.0.0:0").unwrap(); + let listener = net::TcpListener::bind("127.0.0.1:0").unwrap(); let addr = listener.local_addr().unwrap(); thread::spawn(move || { for (mut expected, reply) in txns {