cmd/geth, node: allow configuring JSON-RPC on custom path prefix (#22184)
This change allows users to set a custom path prefix on which to mount the http-rpc or ws-rpc handlers via the new flags --http.rpcprefix and --ws.rpcprefix. Fixes #21826 Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
		@@ -244,7 +244,10 @@ func TestStartRPC(t *testing.T) {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for _, test := range tests {
 | 
			
		||||
		test := test
 | 
			
		||||
		t.Run(test.name, func(t *testing.T) {
 | 
			
		||||
			t.Parallel()
 | 
			
		||||
 | 
			
		||||
			// Apply some sane defaults.
 | 
			
		||||
			config := test.cfg
 | 
			
		||||
			// config.Logger = testlog.Logger(t, log.LvlDebug)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user