Browse Source

debug from any server

pull/2226/head
Chris Lu 4 years ago
parent
commit
1ff8285d82
  1. 2
      weed/command/filer.go
  2. 2
      weed/command/server.go

2
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)

2
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)

Loading…
Cancel
Save