repochecker: New option to restrict domain where remote file can come from
This commit is contained in:
parent
3e1c01031f
commit
6163d51e5b
3 changed files with 43 additions and 0 deletions
|
@ -126,6 +126,7 @@ func main() {
|
|||
flag.BoolVar(&fic.StrongDigest, "strongdigest", fic.StrongDigest, "Are BLAKE2b digests required or is SHA-1 good enough?")
|
||||
flag.BoolVar(&api.IsProductionEnv, "4real", api.IsProductionEnv, "Set this flag when running for a real challenge (it disallows or avoid most of mass user progression deletion)")
|
||||
flag.Var(&checkplugins, "rules-plugins", "List of libraries containing others rules to checks")
|
||||
flag.Var(&sync.RemoteFileDomainWhitelist, "remote-file-domain-whitelist", "List of domains which are allowed to store remote files")
|
||||
flag.Parse()
|
||||
|
||||
log.SetPrefix("[admin] ")
|
||||
|
|
Reference in a new issue