aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-15 09:26:30 +0800
committerobscuren <geffobscura@gmail.com>2015-02-15 09:26:30 +0800
commit7299eb72e0c57d8bf7279cbf2544c266a3fd145b (patch)
tree77b94bb5393e86d663813bef9b2699532d3a1972 /rpc
parent238f39a42ecaf489f0dbbf880e6d8f8e86791f1d (diff)
downloaddexon-7299eb72e0c57d8bf7279cbf2544c266a3fd145b.tar
dexon-7299eb72e0c57d8bf7279cbf2544c266a3fd145b.tar.gz
dexon-7299eb72e0c57d8bf7279cbf2544c266a3fd145b.tar.bz2
dexon-7299eb72e0c57d8bf7279cbf2544c266a3fd145b.tar.lz
dexon-7299eb72e0c57d8bf7279cbf2544c266a3fd145b.tar.xz
dexon-7299eb72e0c57d8bf7279cbf2544c266a3fd145b.tar.zst
dexon-7299eb72e0c57d8bf7279cbf2544c266a3fd145b.zip
HTTP RPC only listen on localhost
Diffstat (limited to 'rpc')
-rw-r--r--rpc/http/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/http/server.go b/rpc/http/server.go
index 10c8fa813..dd6ba68e3 100644
--- a/rpc/http/server.go
+++ b/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