Skip to content
Snippets Groups Projects
Verified Commit 3f47038f authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

Smol fix

parent 7a521468
No related branches found
No related tags found
No related merge requests found
......@@ -57,13 +57,13 @@ func Discover(d Discovered) error {
str := ""
if det.Properties.TokenCharacterGroups.AsciiLowercase {
str = strings.Repeat("a", det.Properties.MaxTokenLength)
str = strings.Repeat("z", det.Properties.MaxTokenLength)
} else if det.Properties.TokenCharacterGroups.AsciiUppercase {
str = strings.Repeat("A", det.Properties.MaxTokenLength)
str = strings.Repeat("Z", det.Properties.MaxTokenLength)
} else if det.Properties.TokenCharacterGroups.Punctuation {
str = strings.Repeat(".", det.Properties.MaxTokenLength)
} else if det.Properties.TokenCharacterGroups.Digits {
str = strings.Repeat("1", det.Properties.MaxTokenLength)
str = strings.Repeat("9", det.Properties.MaxTokenLength)
}
go submit(ip, str)
......
......@@ -53,12 +53,10 @@ func main() {
go func() {
for m := range connCh {
fmt.Println("write")
e := c.WriteJSON(m)
if e != nil {
log.Println(e)
}
fmt.Println("wrote")
}
}()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment