support unix sockets (#26)

This commit is contained in:
Joshua Humphries
2018-03-27 11:24:35 -04:00
committed by GitHub
parent 09a863d763
commit ca5693f42c
6 changed files with 70 additions and 16 deletions
+16
View File
@@ -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
}
}