fix: change the default IP address to 0.0.0.0 root.go

This commit is contained in:
niubility000 2024-02-28 09:06:05 +08:00 committed by GitHub
parent 28b8bc6c52
commit 6856fc5f1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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())
}