mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-07 21:54:17 +08:00
更新程序为单二进制文件
支持远程桌面连接 添加后台显示版本号 支持邮箱设置加密类型
This commit is contained in:
@@ -67,10 +67,11 @@ func SetSystem(w http.ResponseWriter, r *http.Request) {
|
||||
hi, _ := host.Info()
|
||||
l, _ := load.Avg()
|
||||
data["sys"] = map[string]interface{}{
|
||||
"goOs": runtime.GOOS,
|
||||
"goArch": runtime.GOARCH,
|
||||
"goVersion": runtime.Version(),
|
||||
"goroutine": runtime.NumGoroutine(),
|
||||
"goOs": runtime.GOOS,
|
||||
"goArch": runtime.GOARCH,
|
||||
"goVersion": runtime.Version(),
|
||||
"goroutine": runtime.NumGoroutine(),
|
||||
"appVersion": "v" + base.APP_VER,
|
||||
|
||||
"hostname": hi.Hostname,
|
||||
"platform": fmt.Sprintf("%v %v %v", hi.Platform, hi.PlatformFamily, hi.PlatformVersion),
|
||||
|
@@ -59,8 +59,14 @@ func SendMail(subject, to, htmlBody string) error {
|
||||
server.Port = dataSmtp.Port
|
||||
server.Username = dataSmtp.Username
|
||||
server.Password = dataSmtp.Password
|
||||
if dataSmtp.UseSSl {
|
||||
server.Encryption = mail.EncryptionSSL
|
||||
|
||||
switch dataSmtp.Encryption {
|
||||
case "SSLTLS":
|
||||
server.Encryption = mail.EncryptionSSLTLS
|
||||
case "STARTTLS":
|
||||
server.Encryption = mail.EncryptionSTARTTLS
|
||||
default:
|
||||
server.Encryption = mail.EncryptionNone
|
||||
}
|
||||
|
||||
// Since v2.3.0 you can specified authentication type:
|
||||
|
Reference in New Issue
Block a user