Commit 7299eb72 authored by obscuren's avatar obscuren

HTTP RPC only listen on localhost

parent 238f39a4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment