fix edgecase for new variable support

Signed-off-by: RonniSkansing <rskansing@gmail.com>
This commit is contained in:
RonniSkansing
2026-08-10 21:04:54 +02:00
parent 13e8a7976e
commit bf40babe6b
+11 -1
View File
@@ -936,11 +936,21 @@ func (s *Server) checkAndServePhishingPage(
s.logger.Debugw("serving before landing page from state",
"pageID", pageID.String(),
)
} else {
} else if beforeProxyID != nil {
proxyID = beforeProxyID
s.logger.Debugw("serving before landing Proxy from state",
"proxyID", proxyID.String(),
)
} else if landingPageID != nil {
pageID = landingPageID
s.logger.Debugw("before stage no longer configured, falling back to landing page for before state",
"pageID", pageID.String(),
)
} else {
proxyID = landingProxyID
s.logger.Debugw("before stage no longer configured, falling back to landing Proxy for before state",
"proxyID", proxyID.String(),
)
}
currentPageType = data.PAGE_TYPE_BEFORE
nextPageType = data.PAGE_TYPE_LANDING