diff --git a/peercred_darwin.go b/peercred_darwin.go index f483b6d..fdfb0a2 100644 --- a/peercred_darwin.go +++ b/peercred_darwin.go @@ -13,10 +13,10 @@ import ( ) func init() { - osGet = getLinux + osGet = getDarwin } -func getLinux(c net.Conn) (*Creds, error) { +func getDarwin(c net.Conn) (*Creds, error) { switch c := c.(type) { case *net.UnixConn: return getUnix(c)