From 1ff8285d82b7028f9ebe14bc180ddf33fc36dbaf Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 31 Jul 2021 02:13:21 -0700 Subject: [PATCH] debug from any server --- weed/command/filer.go | 2 +- weed/command/server.go | 2 +- 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)