fix:修复DNS缓存导致的网络检查不正确的问题

This commit is contained in:
Mmx
2021-03-17 22:28:02 +08:00
parent 2a2fc9643f
commit dd9f0b3a96
5 changed files with 28 additions and 7 deletions

View File

@@ -37,8 +37,8 @@ func GetResult(body string) (string, error) {
func Md5(content string) string {
w := md5.New()
_, _ = io.WriteString(w, content) //将str写入到w中
return fmt.Sprintf("%x", w.Sum(nil)) //w.Sum(nil)将w的hash转成[]byte格式
_, _ = io.WriteString(w, content)
return fmt.Sprintf("%x", w.Sum(nil))
}
func Sha1(content string) string {