mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 18:53:43 -04:00
add support unix socket for GRPC (#5943)
This commit is contained in:
@@ -27,6 +27,9 @@ func Transport(s string) (trans string, addr string) {
|
||||
s = s[len(transport.HTTPS+"://"):]
|
||||
|
||||
return transport.HTTPS, s
|
||||
case strings.HasPrefix(s, transport.UNIX+"://"):
|
||||
s = s[len(transport.UNIX+"://"):]
|
||||
return transport.UNIX, s
|
||||
}
|
||||
|
||||
return transport.DNS, s
|
||||
|
||||
Reference in New Issue
Block a user