aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-06-21 12:42:49 -0700
committerJoel Galenson <jgalenson@google.com>2021-06-21 12:42:49 -0700
commit8e8acbd61c224df38a367a9cdd30075966860bf9 (patch)
tree657ca28347ca6d074f482a3191123b68375bce20 /src/server.rs
parent3adce0c03a69c88fc538ff74a98a8a74019819d5 (diff)
downloadgrpcio-8e8acbd61c224df38a367a9cdd30075966860bf9.tar.gz
Test: make Change-Id: I05fd19472fbf556926a0145466f45235e089ab9f
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs2
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))