aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-07-31 02:13:21 -0700
committerChris Lu <chris.lu@gmail.com>2021-07-31 02:13:21 -0700
commit1ff8285d82b7028f9ebe14bc180ddf33fc36dbaf (patch)
tree66fa6dcff5d8db4977960210544a3d5945f856ca
parent0d6f45cb464e2dc91dc392447f7af23c744a119d (diff)
downloadseaweedfs-1ff8285d82b7028f9ebe14bc180ddf33fc36dbaf.tar.xz
seaweedfs-1ff8285d82b7028f9ebe14bc180ddf33fc36dbaf.zip
debug from any server
-rw-r--r--weed/command/filer.go2
-rw-r--r--weed/command/server.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go
index eb7078a9d..0f1e63df6 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -126,7 +126,7 @@ var cmdFiler = &Command{
func runFiler(cmd *Command, args []string) bool {
if *f.debug {
- go http.ListenAndServe("localhost:6060", nil)
+ go http.ListenAndServe(":6060", nil)
}
util.LoadConfiguration("security", false)
diff --git a/weed/command/server.go b/weed/command/server.go
index 83aa5e84c..19fe8607b 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -143,7 +143,7 @@ func init() {
func runServer(cmd *Command, args []string) bool {
if *serverOptions.debug {
- go http.ListenAndServe("localhost:6060", nil)
+ go http.ListenAndServe(":6060", nil)
}
util.LoadConfiguration("security", false)