fix: change the default ip address to 0.0.0.0

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

View File

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