fixed error message

This commit is contained in:
Y. T. Chung
2016-07-09 00:48:39 +08:00
parent 98f786f1c7
commit 3d8af1c00d
+1 -1
View File
@@ -53,7 +53,7 @@ impl TcpRelayServer {
fn accept_loop(s: ServerConfig, forbidden_ip: Arc<HashSet<IpAddr>>) {
let acceptor = TcpListener::bind(&(&s.addr[..], s.port))
.unwrap_or_else(|err| panic!("Failed to bind a UDP socket: {}", err));
.unwrap_or_else(|err| panic!("Failed to bind a TCP socket: {}", err));
info!("Shadowsocks listening on {}:{}", s.addr, s.port);