From 83fc60109f942d4b485289eaedb7a6d2c7ac72b8 Mon Sep 17 00:00:00 2001
From: Wolfgang Welz <welzwo@gmail.com>
Date: Fri, 24 Jan 2020 18:34:51 +0100
Subject: [PATCH] Use local bind on default (#177)

---
 config.json                     | 6 +++---
 plugins/dashboard/parameters.go | 2 +-
 plugins/graph/parameters.go     | 2 +-
 plugins/webapi/parameters.go    | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/config.json b/config.json
index b702dcb0..d7e13395 100644
--- a/config.json
+++ b/config.json
@@ -17,7 +17,7 @@
     "port": 14626
   },
   "dashboard": {
-    "bindAddress": "0.0.0.0:8081"
+    "bindAddress": "127.0.0.1:8081"
   },
   "database": {
     "directory": "mainnetdb"
@@ -26,7 +26,7 @@
     "port": 14666
   },
   "graph": {
-    "bindAddress": "127.0.0.1:8083",
+    "bindAddress": "127.0.0.1:8082",
     "domain": "",
     "networkName": "GoShimmer",
     "socketIOPath": "socket.io-client/dist/socket.io.js",
@@ -56,7 +56,7 @@
       "privateKey": "",
       "username": "goshimmer"
     },
-    "bindAddress": "0.0.0.0:8080"
+    "bindAddress": "127.0.0.1:8080"
   },
   "zeromq": {
     "port": 5556
diff --git a/plugins/dashboard/parameters.go b/plugins/dashboard/parameters.go
index 1031a273..2326d843 100644
--- a/plugins/dashboard/parameters.go
+++ b/plugins/dashboard/parameters.go
@@ -9,5 +9,5 @@ const (
 )
 
 func init() {
-	flag.String(CFG_BIND_ADDRESS, "0.0.0.0:8081", "the bind address for the dashboard")
+	flag.String(CFG_BIND_ADDRESS, "127.0.0.1:8081", "the bind address for the dashboard")
 }
diff --git a/plugins/graph/parameters.go b/plugins/graph/parameters.go
index 5fbef46f..7b49d680 100644
--- a/plugins/graph/parameters.go
+++ b/plugins/graph/parameters.go
@@ -17,6 +17,6 @@ func init() {
 	flag.String(CFG_WEBROOT, "IOTAtangle/webroot", "Path to IOTA Tangle Visualiser webroot files")
 	flag.String(CFG_SOCKET_IO, "socket.io-client/dist/socket.io.js", "Path to socket.io.js")
 	flag.String(CFG_DOMAIN, "", "Set the domain on which IOTA Tangle Visualiser is served")
-	flag.String(CFG_BIND_ADDRESS, "127.0.0.1:8083", "the bind address for the IOTA Tangle Visualizer")
+	flag.String(CFG_BIND_ADDRESS, "127.0.0.1:8082", "the bind address for the IOTA Tangle Visualizer")
 	flag.String(CFG_NETWORK, cli.AppName, "Name of the network shown in IOTA Tangle Visualiser")
 }
diff --git a/plugins/webapi/parameters.go b/plugins/webapi/parameters.go
index e5703ce3..d87284c8 100644
--- a/plugins/webapi/parameters.go
+++ b/plugins/webapi/parameters.go
@@ -9,5 +9,5 @@ const (
 )
 
 func init() {
-	flag.String(BIND_ADDRESS, "0.0.0.0:8080", "the bind address for the web API")
+	flag.String(BIND_ADDRESS, "127.0.0.1:8080", "the bind address for the web API")
 }
-- 
GitLab