mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
node: don't limit the auth rpc
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
e0b119884c
commit
017ae32fb7
1 changed files with 4 additions and 2 deletions
|
|
@ -449,8 +449,10 @@ func (n *Node) startRPC() error {
|
|||
if err := server.setListenAddr(n.config.AuthAddr, port); err != nil {
|
||||
return err
|
||||
}
|
||||
sharedConfig := rpcConfig
|
||||
sharedConfig.jwtSecret = secret
|
||||
// Don't limit the requests to the auth endpoint
|
||||
sharedConfig := rpcEndpointConfig{
|
||||
jwtSecret: secret,
|
||||
}
|
||||
if err := server.enableRPC(allAPIs, httpConfig{
|
||||
CorsAllowedOrigins: DefaultAuthCors,
|
||||
Vhosts: n.config.AuthVirtualHosts,
|
||||
|
|
|
|||
Loading…
Reference in a new issue