Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

new unsubscribe HTML page and update IP whitelist routes

lotk99fb7e7be8a7
diff --git a/core/internal/cmd/cmd.go b/core/internal/cmd/cmd.go
index 1f4b0956..fafff83b 100644
--- a/core/internal/cmd/cmd.go
+++ b/core/internal/cmd/cmd.go
@@ -138,6 +138,7 @@ var (
"/favicon.ico": {},
"/robots.txt": {},
"/unsubscribe.html": {},
+ "/unsubscribe_new.html": {},
"/api/unsubscribe/user_group": {},
"/api/unsubscribe": {},
"/api/unsubscribe_new": {},
diff --git a/core/internal/controller/middleware/ip_whitelist.go b/core/internal/controller/middleware/ip_whitelist.go
index ab315087..f4ca9455 100644
--- a/core/internal/controller/middleware/ip_whitelist.go
+++ b/core/internal/controller/middleware/ip_whitelist.go
@@ -14,9 +14,10 @@ var ExcludedPaths = map[string]struct{}{
"/favicon.ico": {},
"/robots.txt": {},
"/unsubscribe.html": {},
+ "/unsubscribe_new.html": {},
"/api/unsubscribe/user_group": {},
"/api/unsubscribe": {},
- "api/unsubscribe_new": {},
+ "api/unsubscribe_new": {},
"/api/batch_mail/api/send": {},
"/api/batch_mail/api/batch_send": {},
"/api/subscribe/submit": {},