move whitelist/remove up
This commit is contained in:
@@ -57,6 +57,14 @@ export default function (ctx: AppContext, app: Express) {
|
|||||||
|
|
||||||
if (rulePresent) {
|
if (rulePresent) {
|
||||||
switch (rulePresent.action) {
|
switch (rulePresent.action) {
|
||||||
|
case ToolsOzoneSafelinkDefs.WHITELIST:
|
||||||
|
redirectLogger.info(
|
||||||
|
`Whitelist rule matched for ${rulePresent.url}`,
|
||||||
|
)
|
||||||
|
break
|
||||||
|
case ToolsOzoneSafelinkDefs.REMOVERULE:
|
||||||
|
redirectLogger.info(`Remove rule matched for ${rulePresent.url}`)
|
||||||
|
break
|
||||||
case ToolsOzoneSafelinkDefs.BLOCK:
|
case ToolsOzoneSafelinkDefs.BLOCK:
|
||||||
hole = linkWarningLayout(
|
hole = linkWarningLayout(
|
||||||
'Blocked Link Warning',
|
'Blocked Link Warning',
|
||||||
@@ -79,14 +87,6 @@ export default function (ctx: AppContext, app: Express) {
|
|||||||
res.setHeader('Cache-Control', 'no-store')
|
res.setHeader('Cache-Control', 'no-store')
|
||||||
redirectLogger.info(`Warn rule matched for ${rulePresent.url}`)
|
redirectLogger.info(`Warn rule matched for ${rulePresent.url}`)
|
||||||
break
|
break
|
||||||
case ToolsOzoneSafelinkDefs.WHITELIST:
|
|
||||||
redirectLogger.info(
|
|
||||||
`Whitelist rule matched for ${rulePresent.url}`,
|
|
||||||
)
|
|
||||||
break
|
|
||||||
case ToolsOzoneSafelinkDefs.REMOVERULE:
|
|
||||||
redirectLogger.info(`Remove rule matched for ${rulePresent.url}`)
|
|
||||||
break
|
|
||||||
default:
|
default:
|
||||||
redirectLogger.warn(
|
redirectLogger.warn(
|
||||||
`${rulePresent.action} rule (an unknown rule) matched for ${rulePresent.url}`,
|
`${rulePresent.action} rule (an unknown rule) matched for ${rulePresent.url}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user