From 28b8bc6c52f0f7513b97d048569ec768f1552e95 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 28 Feb 2024 08:58:05 +0800 Subject: [PATCH] fix: change the default ip address to 0.0.0.0 --- cmd/root.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 21c40bec..33fb07c4 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -180,9 +180,8 @@ user created with the credentials from options "username" and "password".`, checkErr(err) defer listener.Close() - if strings.Contains(adr, "0.0.0.0") { - log.Println("Listening on 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()) }