From 6a5f4ba621980f8abfbce26c337f95b48dcecb8a Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 5 Aug 2023 20:52:55 -0400 Subject: [PATCH] reject origin test in getjunk path to catch strays --- activity.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activity.go b/activity.go index 4cf0285..07c8bd0 100644 --- a/activity.go +++ b/activity.go @@ -133,6 +133,9 @@ var flightdeck = gate.NewSerializer() var signGets = true func GetJunkTimeout(userid int64, url string, timeout time.Duration) (junk.Junk, error) { + if rejectorigin(userid, url, false) { + return nil, fmt.Errorf("rejected origin: %s", url) + } client := http.DefaultClient sign := func(req *http.Request) error { var ki *KeyInfo