Compare commits

..

1 Commits

Author SHA1 Message Date
aoife cassidy
521af4dfd5
add suspicious_hosts table to signups.sql 2025-11-22 12:41:11 +01:00

View File

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