mirror of
https://github.com/oneclickvirt/portchecker.git
synced 2025-12-24 13:29:24 +08:00
update
This commit is contained in:
@@ -139,7 +139,6 @@ func emailCheck() string {
|
||||
go checkIMAPS(name, imapHost)
|
||||
}
|
||||
wg.Wait()
|
||||
|
||||
close(localChan)
|
||||
close(smtpChan)
|
||||
close(pop3Chan)
|
||||
@@ -195,7 +194,6 @@ func emailCheck() string {
|
||||
}
|
||||
}()
|
||||
wg.Wait()
|
||||
|
||||
var results []string
|
||||
results = append(results, fmt.Sprintf("%-9s %-5s %-5s %-5s %-5s %-5s %-5s", "Platform", "SMTP", "SMTPS", "POP3", "POP3S", "IMAP", "IMAPS"))
|
||||
results = append(results, fmt.Sprintf("%-10s%-5s %-5s %-5s %-5s %-5s %-5s", "LocalPort", temp[0], temp[1], temp[2], temp[3], temp[4], temp[5]))
|
||||
@@ -211,6 +209,12 @@ func main() {
|
||||
go func() {
|
||||
http.Get("https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Foneclickvirt%2Fportchecker&count_bg=%2323E01C&title_bg=%23555555&icon=sonarcloud.svg&icon_color=%23E7E7E7&title=hits&edge_flat=false")
|
||||
}()
|
||||
showVersion := false
|
||||
flag.BoolVar(&showVersion, "v", false, "show version")
|
||||
if showVersion {
|
||||
fmt.Println(model.Version)
|
||||
return
|
||||
}
|
||||
fmt.Println("项目地址:", "https://github.com/oneclickvirt/portchecker")
|
||||
res := emailCheck()
|
||||
fmt.Printf("%s\n", res)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package model
|
||||
|
||||
var Version = "v0.0.1"
|
||||
var LocalServers = []string{"25", "465", "110", "995", "143", "993"}
|
||||
var Platforms = []string{"QQ", "163", "Sohu", "Yandex", "Gmail", "Outlook", "Office365", "Yahoo", "MailCOM", "MailRU", "AOL", "GMX", "Sina"}
|
||||
var SmtpServers = map[string]string{
|
||||
@@ -11,12 +12,12 @@ var SmtpServers = map[string]string{
|
||||
"Outlook": "smtp.outlook.com",
|
||||
"Yahoo": "smtp.mail.yahoo.com",
|
||||
// "Apple": "smtp.mail.me.com",
|
||||
"MailRU": "smtp.mail.ru",
|
||||
"AOL": "smtp.aol.com",
|
||||
"GMX": "smtp.gmx.com",
|
||||
"MailCOM": "smtp.mail.com",
|
||||
"Sohu": "smtp.sohu.com",
|
||||
"Sina": "smtp.sina.com",
|
||||
"MailRU": "smtp.mail.ru",
|
||||
"AOL": "smtp.aol.com",
|
||||
"GMX": "smtp.gmx.com",
|
||||
"MailCOM": "smtp.mail.com",
|
||||
"Sohu": "smtp.sohu.com",
|
||||
"Sina": "smtp.sina.com",
|
||||
}
|
||||
var Pop3Servers = map[string]string{
|
||||
"Gmail": "pop.gmail.com",
|
||||
@@ -27,12 +28,12 @@ var Pop3Servers = map[string]string{
|
||||
"Outlook": "pop-mail.outlook.com",
|
||||
"Yahoo": "pop.mail.yahoo.com",
|
||||
// "Apple": "pop.mail.me.com",
|
||||
"MailRU": "pop.mail.ru",
|
||||
"AOL": "pop.aol.com",
|
||||
"GMX": "pop.gmx.com",
|
||||
"MailCOM": "pop.mail.com",
|
||||
"Sohu": "pop.sohu.com",
|
||||
"Sina": "pop.sina.com",
|
||||
"MailRU": "pop.mail.ru",
|
||||
"AOL": "pop.aol.com",
|
||||
"GMX": "pop.gmx.com",
|
||||
"MailCOM": "pop.mail.com",
|
||||
"Sohu": "pop.sohu.com",
|
||||
"Sina": "pop.sina.com",
|
||||
}
|
||||
var ImapServers = map[string]string{
|
||||
"Gmail": "imap.gmail.com",
|
||||
@@ -43,10 +44,10 @@ var ImapServers = map[string]string{
|
||||
"Outlook": "imap-mail.outlook.com",
|
||||
"Yahoo": "imap.mail.yahoo.com",
|
||||
// "Apple": "imap.mail.me.com",
|
||||
"MailRU": "imap.mail.ru",
|
||||
"AOL": "imap.aol.com",
|
||||
"GMX": "imap.gmx.com",
|
||||
"MailCOM": "imap.mail.com",
|
||||
"Sohu": "imap.sohu.com",
|
||||
"Sina": "imap.sina.com",
|
||||
"MailRU": "imap.mail.ru",
|
||||
"AOL": "imap.aol.com",
|
||||
"GMX": "imap.gmx.com",
|
||||
"MailCOM": "imap.mail.com",
|
||||
"Sohu": "imap.sohu.com",
|
||||
"Sina": "imap.sina.com",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user