mirror of
https://gitgud.io/yats/cerberus.git
synced 2026-05-02 10:42:05 -04:00
Don't overwrite existing CheckRedirect
This commit is contained in:
@@ -30,8 +30,6 @@ type Solution struct {
|
||||
Nonce uint32 // Solution nonce. This is the "answer" to the problem.
|
||||
Redirect string // Relative path to redirect to after Solution is accepted.
|
||||
|
||||
Steps int8 // Steps, as described in Challenge.
|
||||
|
||||
// TODO: Maybe make the redirect shit auto, idk.
|
||||
|
||||
host *url.URL
|
||||
@@ -102,7 +100,6 @@ func genHashes(ctx context.Context, c Challenge) <-chan Solution {
|
||||
Salt: c.Salt,
|
||||
Nonce: nonce,
|
||||
Redirect: "/", // Use sensible default for placeholder, for now.
|
||||
Steps: c.Steps - 1,
|
||||
}
|
||||
// Ensure we don't hang if out channel is full on ctx close.
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user