HTTP RPC only listen on localhost

pull/312/merge
obscuren 10 years ago
parent 238f39a42e
commit 7299eb72e0
  1. 2
      rpc/http/server.go

@ -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…
Cancel
Save