From 6856fc5f1b96f1793d876037e809484c9cae5188 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 28 Feb 2024 09:06:05 +0800 Subject: [PATCH] fix: change the default IP address to 0.0.0.0 root.go --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 33fb07c4..bd235f93 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -181,7 +181,7 @@ user created with the credentials from options "username" and "password".`, defer listener.Close() if strings.Contains(adr, "0.0.0.0") { - log.Println("Listening on 0.0.0.0:" + server.Port +". You can access the FileBrowser at 127.0.0.1:" + server.Port) + log.Println("Listening on 0.0.0.0:" + server.Port + ". You can access the FileBrowser at 127.0.0.1:" + server.Port) } else { log.Println("Listening on", listener.Addr().String()) }