
On linux, delve RPC server allows only connections from the same user if --only-same-user is set (true, by default). Do the same for DAP server. Moved the sameuser check logic to service/internal/sameuser. Considered importing service/rpccommon from the dap server, but when we eventually migrate to multiplex rpc and dap from one port, I am afraid that can cause cyclic imports.
10 lines
101 B
Go
10 lines
101 B
Go
//+build !linux
|
|
|
|
package sameuser
|
|
|
|
import "net"
|
|
|
|
func CanAccept(_, _ net.Addr) bool {
|
|
return true
|
|
}
|