diff --git a/domainset.go b/domainset.go index f0e16f6..f702d48 100644 --- a/domainset.go +++ b/domainset.go @@ -107,6 +107,17 @@ func isHostBlocked(host string) bool { return blockedDs.has(dm) } +func isHostDirect(host string) bool { + dm := host2Domain(host) + if alwaysDirectDs[dm] { + return true + } + if alwaysBlockedDs[dm] { + return false + } + return directDs.has(dm) +} + func isHostInChouDs(host string) bool { return chouDs[host2Domain(host)] } diff --git a/error.go b/error.go index ac54d68..b84b654 100644 --- a/error.go +++ b/error.go @@ -23,13 +23,15 @@ var errPageRawTmpl = ` ` var blockedFormRawTmpl = `
- Refresh to retry or add {{.Domain}} to + Add {{.Domain}} to -