Enforce certificate zones before anything else.
This commit is contained in:
parent
4ae154faed
commit
f291e5863c
1 changed files with 4 additions and 4 deletions
|
@ -78,14 +78,14 @@ func handleGeminiRequest(conn net.Conn, config Config, accessLogEntries chan Log
|
||||||
parseMollyFiles(path, &config, errorLogEntries)
|
parseMollyFiles(path, &config, errorLogEntries)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for redirects
|
// Check whether this URL is in a certificate zone
|
||||||
handleRedirects(URL, config, conn, &log)
|
handleCertificateZones(URL, clientCerts, config, conn, &log)
|
||||||
if log.Status != 0 {
|
if log.Status != 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check whether this URL is in a certificate zone
|
// Check for redirects
|
||||||
handleCertificateZones(URL, clientCerts, config, conn, &log)
|
handleRedirects(URL, config, conn, &log)
|
||||||
if log.Status != 0 {
|
if log.Status != 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue