FIXED:
* Better request tracking through flow

ADDED:
* Cross-check detection
This commit is contained in:
brent saner
2025-12-17 19:21:07 -05:00
parent 9f97fcaf81
commit 1a4549ea72
7 changed files with 73 additions and 40 deletions

View File

@@ -2,20 +2,30 @@ package server
import (
`fmt`
`net/url`
)
func (p *Page) AltURL() (altUrl string) {
var u *url.URL
if !p.HasAltURL() {
return
}
if p.Info.IP.Is4() {
altUrl = p.srv.v6Url.String()
u = p.srv.v6Url
} else if p.Info.IP.Is6() {
altUrl = p.srv.v4Url.String()
u = p.srv.v4Url
} else {
// lol how did you get here
return
}
u.Query().Add(urlParamXCheck, p.ReqUUID.String())
altUrl = u.String()
return
}