feat: Added a few more TLDs
This commit is contained in:
parent
7ce8dfc96d
commit
9fcab8e9e1
1 changed files with 7 additions and 9 deletions
16
main.go
16
main.go
|
@ -47,20 +47,18 @@ func main() {
|
||||||
tg.SendMessage(chatId, "failed getting domains: " + err.Error())
|
tg.SendMessage(chatId, "failed getting domains: " + err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
polish := false
|
match := false
|
||||||
ndc := false
|
|
||||||
for _, domain := range allDomains {
|
for _, domain := range allDomains {
|
||||||
if strings.HasSuffix(domain, ".pl") {
|
for _, tld := range []string{".pl", ".app", ".dev", ".cloud"} {
|
||||||
polish = true
|
if strings.HasSuffix(domain, tld) {
|
||||||
|
match = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if strings.HasSuffix(domain, "ndc.pl") {
|
if strings.HasSuffix(domain, "ndc.pl") {
|
||||||
ndc = true
|
match = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !polish {
|
if !match {
|
||||||
continue
|
|
||||||
}
|
|
||||||
if ndc {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue