Compare commits

..

1 Commits

Author SHA1 Message Date
aoife cassidy
49bf74e692
add suspicious_hosts table to signups.sql 2025-11-22 12:44:16 +01:00

View File

@ -239,6 +239,7 @@ func _main(l *log.Logger, db *sql.DB) error {
"i'm sorry, before going further could you share an email with me?", "i'm sorry, before going further could you share an email with me?",
newCharacter("wire guy", "a lil homonculus made of discarded computer cables"), newCharacter("wire guy", "a lil homonculus made of discarded computer cables"),
func(s *scene) { func(s *scene) {
su.Email = string(s.Input.Bytes())
suspiciousHosts, err := models.SuspiciousHosts(db) suspiciousHosts, err := models.SuspiciousHosts(db)
if err != nil { if err != nil {
// XXX: maybe log somewhere that the database failed // XXX: maybe log somewhere that the database failed
@ -248,7 +249,6 @@ func _main(l *log.Logger, db *sql.DB) error {
for _, host := range suspiciousHosts { for _, host := range suspiciousHosts {
shDomains = append(shDomains, host.Domain) shDomains = append(shDomains, host.Domain)
} }
su.Email = string(s.Input.Bytes())
if records, err := DigMX(su.Email); err == nil { if records, err := DigMX(su.Email); err == nil {
for _, record := range records { for _, record := range records {
if slices.Contains(shDomains, record) { if slices.Contains(shDomains, record) {