From 88448a8ba556c35ed1bfe5b25f8fe7387b5b265d Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Tue, 2 Mar 2021 05:46:04 -0800 Subject: [PATCH] Rename to getDarwin Signed-off-by: Denton Gentry --- peercred_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)