debug from any server
This commit is contained in:
@@ -126,7 +126,7 @@ var cmdFiler = &Command{
|
|||||||
|
|
||||||
func runFiler(cmd *Command, args []string) bool {
|
func runFiler(cmd *Command, args []string) bool {
|
||||||
if *f.debug {
|
if *f.debug {
|
||||||
go http.ListenAndServe("localhost:6060", nil)
|
go http.ListenAndServe(":6060", nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
util.LoadConfiguration("security", false)
|
util.LoadConfiguration("security", false)
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ func init() {
|
|||||||
func runServer(cmd *Command, args []string) bool {
|
func runServer(cmd *Command, args []string) bool {
|
||||||
|
|
||||||
if *serverOptions.debug {
|
if *serverOptions.debug {
|
||||||
go http.ListenAndServe("localhost:6060", nil)
|
go http.ListenAndServe(":6060", nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
util.LoadConfiguration("security", false)
|
util.LoadConfiguration("security", false)
|
||||||
|
|||||||
Reference in New Issue
Block a user