Strip unneeded functionality

This commit is contained in:
2025-04-03 23:19:49 -04:00
parent 35a0c7bd7e
commit f4afca81ad
6 changed files with 11 additions and 76 deletions
-14
View File
@@ -12,20 +12,6 @@ import (
"golang.org/x/sys/unix"
)
func init() {
osGet = getDarwin
}
func getDarwin(c net.Conn) (*Creds, error) {
switch c := c.(type) {
case *net.UnixConn:
return getUnix(c)
case *net.TCPConn:
// TODO: use /proc tcp info for localhost connections like Windows?
}
return nil, ErrUnsupportedConnType
}
func getUnix(c *net.UnixConn) (*Creds, error) {
raw, err := c.SyscallConn()
if err != nil {