Fix: Do not save duplicate domains

This commit is contained in:
Daniel Hougaard
2024-08-26 15:08:51 +04:00
parent 7a2f0214f3
commit 1f24d02c5e
2 changed files with 16 additions and 4 deletions
+9
View File
@@ -298,3 +298,12 @@ func GenerateRandomString(length int) string {
}
return string(b)
}
func ArrayContains(arr []string, val string) bool {
for _, item := range arr {
if item == val {
return true
}
}
return false
}