mirror of
https://github.com/fullstorydev/grpcurl.git
synced 2026-06-25 20:31:12 +03:00
support unix sockets (#26)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package main
|
||||
|
||||
import "flag"
|
||||
|
||||
var (
|
||||
unix = flag.Bool("unix", false,
|
||||
`Indicates that the server address is the path to a Unix domain socket.`)
|
||||
)
|
||||
|
||||
func init() {
|
||||
isUnixSocket = func() bool {
|
||||
return *unix
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user