fix unplug to handle server without url
Ted Unangst tedu@tedunangst.com
Sun, 24 Dec 2023 20:21:44 -0500
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
main.go
→
main.go
@@ -50,7 +50,10 @@ }
func unplugserver(hostname string) { db := opendatabase() - xid := fmt.Sprintf("%%https://%s/%%", hostname) + xid := fmt.Sprintf("https://%s", hostname) + db.Exec("delete from honkers where xid = ? and flavor = 'dub'", xid) + db.Exec("delete from doovers where rcpt = ?", xid) + xid += "/%" db.Exec("delete from honkers where xid like ? and flavor = 'dub'", xid) db.Exec("delete from doovers where rcpt like ?", xid) }