HTTP RPC only listen on localhost

This commit is contained in:
obscuren 2015-02-15 02:26:30 +01:00
parent 238f39a42e
commit 7299eb72e0

View File

@ -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