diff --git a/README.md b/README.md index ea47119..5cb41e0 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,13 @@ sh bridge-init.sh 相关软件下载: https://gitee.com/bjdgyc/anylink-soft +## Discussion + + + +添加QQ群: 567510628 + + ## Other Screenshot  diff --git a/admin/common.go b/admin/common.go index e8d31ea..98ee065 100644 --- a/admin/common.go +++ b/admin/common.go @@ -68,7 +68,9 @@ func SendMail(subject, to, htmlBody string) error { server.Port = dataSmtp.Port server.Username = dataSmtp.Username server.Password = dataSmtp.Password - // server.Encryption = mail.EncryptionTLS + if dataSmtp.UseSSl { + server.Encryption = mail.EncryptionSSL + } // Since v2.3.0 you can specified authentication type: // - PLAIN (default) diff --git a/base/app_ver.go b/base/app_ver.go index 77d6a69..9f285e4 100644 --- a/base/app_ver.go +++ b/base/app_ver.go @@ -2,5 +2,5 @@ package base const ( APP_NAME = "AnyLink" - APP_VER = "0.0.8" + APP_VER = "0.0.9" ) diff --git a/dbdata/group.go b/dbdata/group.go index 360950e..419b8ee 100644 --- a/dbdata/group.go +++ b/dbdata/group.go @@ -18,13 +18,15 @@ type GroupLinkAcl struct { // 自上而下匹配 默认 allow * * Action string `json:"action"` // allow、deny Val string `json:"val"` - Port uint8 `json:"port"` + Port uint16 `json:"port"` IpNet *net.IPNet `json:"ip_net"` + Note string `json:"note"` } type ValData struct { Val string `json:"val"` IpMask string `json:"ip_mask"` + Note string `json:"note"` } type Group struct { diff --git a/dbdata/setting.go b/dbdata/setting.go index acc89f0..5db2f81 100644 --- a/dbdata/setting.go +++ b/dbdata/setting.go @@ -38,6 +38,7 @@ type SettingSmtp struct { Username string `json:"username"` Password string `json:"password"` From string `json:"from"` + UseSSl bool `json:"use_ssl"` } type SettingOther struct { diff --git a/screenshot/qq.png b/screenshot/qq.png new file mode 100644 index 0000000..50e1fac Binary files /dev/null and b/screenshot/qq.png differ