mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-08-28 04:46:43 -04:00
Rename to getDarwin
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
This commit is contained in:
committed by
Denton Gentry
parent
993aa01eac
commit
88448a8ba5
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user