diff options
author | Joel Galenson <jgalenson@google.com> | 2021-06-21 12:42:49 -0700 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2021-06-21 12:42:49 -0700 |
commit | 8e8acbd61c224df38a367a9cdd30075966860bf9 (patch) | |
tree | 657ca28347ca6d074f482a3191123b68375bce20 /src/server.rs | |
parent | 3adce0c03a69c88fc538ff74a98a8a74019819d5 (diff) | |
download | grpcio-8e8acbd61c224df38a367a9cdd30075966860bf9.tar.gz |
Upgrade rust/crates/grpcio to 0.9.0android-s-beta-5android-s-beta-4android-s-beta-3android-s-beta-5android-s-beta-4
Test: make
Change-Id: I05fd19472fbf556926a0145466f45235e089ab9f
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs index a612b13..c8e28df 100644 --- a/src/server.rs +++ b/src/server.rs @@ -68,7 +68,7 @@ where /// Given a host and port, creates a string of the form "host:port" or /// "[host]:port", depending on whether the host is an IPv6 literal. fn join_host_port(host: &str, port: u16) -> String { - if host.starts_with("unix:") { + if host.starts_with("unix:") | host.starts_with("unix-abstract:") { format!("{}\0", host) } else if let Ok(ip) = host.parse::<IpAddr>() { format!("{}\0", SocketAddr::new(ip, port)) |