This commit is contained in:
hdt3213
2021-05-18 12:17:03 +08:00
parent 1ca15f86eb
commit 68ae54f596

View File

@@ -27,7 +27,7 @@ var defaultProperties = &config.ServerProperties{
func fileExists(filename string) bool {
info, err := os.Stat(filename)
return err != nil && !info.IsDir()
return err == nil && !info.IsDir()
}
func main() {