diff --git a/go.mod b/go.mod index 0cc36a0..7ff4413 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/rwinkhart/peercred-mini -go 1.24.1 +go 1.24.2 require github.com/rwinkhart/sys v0.0.0-20250404053244-7215932ae926 diff --git a/peercred.go b/peercred.go index 1c8fc54..52209f8 100644 --- a/peercred.go +++ b/peercred.go @@ -27,12 +27,8 @@ func (c *Creds) UserID() (uid string) { return c.uid } -func osGet(c net.Conn) (*Creds, error) { - return getUnix(c.(*net.UnixConn)) -} - // Get returns the peer credentials for c. func Get(c net.Conn) *Creds { - creds, _ := osGet(c) + creds, _ := getUnix(c.(*net.UnixConn)) return creds }