Feat: HMAC auth and check

This commit is contained in:
HFO4
2019-12-10 11:13:33 +08:00
parent 4649ddbae2
commit e871f6e421
7 changed files with 166 additions and 5 deletions

View File

@@ -146,6 +146,7 @@ Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; verti
{Name: "aria2_rpcurl", Value: `http://127.0.0.1:6800/`, Type: "aria2"},
{Name: "aria2_options", Value: `{"max-tries":5}`, Type: "aria2"},
{Name: "task_queue_token", Value: ``, Type: "task"},
{Name: "secret_key", Value: util.RandStringRunes(256), Type: "auth"},
}
for _, value := range defaultSettings {