Merge branch 'master' of github.com:Jinnrry/PMail
This commit is contained in:
commit
8114a25323
7 files changed
+54
-48
No files matched your search
@@ -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" //自动生成证书
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user