forked from cerc-io/plugeth
HTTP RPC only listen on localhost
This commit is contained in:
parent
238f39a42e
commit
7299eb72e0
@ -30,7 +30,7 @@ var rpchttplogger = logger.NewLogger("RPC-HTTP")
|
||||
var JSON rpc.JsonWrapper
|
||||
|
||||
func NewRpcHttpServer(pipe *xeth.XEth, port int) (*RpcHttpServer, error) {
|
||||
sport := fmt.Sprintf(":%d", port)
|
||||
sport := fmt.Sprintf("127.0.0.1:%d", port)
|
||||
l, err := net.Listen("tcp", sport)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user