rpc: dns rebind protection (#15962)
* cmd,node,rpc: add allowedHosts to prevent dns rebinding attacks * p2p,node: Fix bug with dumpconfig introduced in r54aeb8e4c0bb9f0e7a6c67258af67df3b266af3d * rpc: add wildcard support for rpcallowedhosts + go fmt * cmd/geth, cmd/utils, node, rpc: ignore direct ip(v4/6) addresses in rpc virtual hostnames check * http, rpc, utils: make vhosts into map, address review concerns * node: change log messages to use geth standard (not sprintf) * rpc: fix spelling
Showing
- cmd/geth/main.go 1 addition, 0 deletionscmd/geth/main.go
- cmd/geth/usage.go 1 addition, 0 deletionscmd/geth/usage.go
- cmd/utils/flags.go 7 additions, 0 deletionscmd/utils/flags.go
- node/api.go 10 additions, 2 deletionsnode/api.go
- node/config.go 10 additions, 1 deletionnode/config.go
- node/node.go 14 additions, 15 deletionsnode/node.go
- p2p/server.go 1 addition, 1 deletionp2p/server.go
- rpc/http.go 54 additions, 3 deletionsrpc/http.go
Loading
Please register or sign in to comment