delve/service/rpccommon/sameuser.go
Michael Stapelberg a22dc3ff38 service: verify local connections originate from the same UID (#1764)
This prevents other users on the same machine (e.g. a production server) from
using dlv under the credentials of another user, which poses a security issue.
2019-11-25 09:05:45 -08:00

10 lines
102 B
Go

//+build !linux
package rpccommon
import "net"
func canAccept(_, _ net.Addr) bool {
return true
}