Merge branch 'master' of github.com:Jinnrry/PMail

This commit is contained in:
jinnrry committed 2024-03-04 10:58:55 +08:00
commit 8114a25323
7 files changed
+54 -48

No files matched your search

-2
View File
@@ -41,8 +41,6 @@ type Config struct {
//go:embed tables/*
var tableConfig embed.FS
const Version = "2.4.0"
const DBTypeMySQL = "mysql"
const DBTypeSQLite = "sqlite"
const SSLTypeAuto = "0" //自动生成证书
+1 -1
View File
@@ -142,7 +142,7 @@ func Init() {
pluginNo := 1
filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if info != nil && !info.IsDir() && !strings.Contains(info.Name(), ".") {
if info != nil && !info.IsDir() && (!strings.Contains(info.Name(), ".") || strings.Contains(info.Name(), ".exe")) {
socketPath := fmt.Sprintf("%s/%d.socket", root, pluginNo)
+4
View File
@@ -74,6 +74,10 @@ func main() {
log.SetLevel(log.InfoLevel)
}
if version == "" {
version = "2.4.0"
}
log.Infoln("***************************************************")
log.Infof("***\tServer Start Success Version:%s\n", version)
log.Infof("***\tGit Commit Hash: %s ", gitHash)