mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 02:36:18 +08:00 
			
		
		
		
	 669fc2d8d3
			
		
	
	669fc2d8d3
	
	
	
		
			
			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.
		
			
				
	
	
		
			4 lines
		
	
	
		
			122 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			4 lines
		
	
	
		
			122 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Package sameuser provides utilities for checking users of a local connection.
 | |
| // Only works in Linux.
 | |
| package sameuser
 |