mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-09-05 16:47:25 -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() {
|
func init() {
|
||||||
osGet = getLinux
|
osGet = getDarwin
|
||||||
}
|
}
|
||||||
|
|
||||||
func getLinux(c net.Conn) (*Creds, error) {
|
func getDarwin(c net.Conn) (*Creds, error) {
|
||||||
switch c := c.(type) {
|
switch c := c.(type) {
|
||||||
case *net.UnixConn:
|
case *net.UnixConn:
|
||||||
return getUnix(c)
|
return getUnix(c)
|
||||||
|
|||||||
Reference in New Issue
Block a user