3x-ui/web/middleware
Ahmad Thoriq Najahi d070a82b3d
feat: Enhance host extraction from headers ()
- Refactor SUBController subs and subJsons methods to extract host from X-Forwarded-Host header, falling back to X-Real-IP header and then to the request host if unavailable.
- Update html function to extract host from X-Forwarded-Host header, falling back to X-Real-IP header and then to the request host if unavailable.
- Update DomainValidatorMiddleware to first attempt to extract host from X-Forwarded-Host header, falling back to X-Real-IP header and then to the request host.

Fixes: 

Signed-off-by: Ahmad Thoriq Najahi <najahi@zephyrus.id>
2024-05-23 23:51:19 +02:00
..
domainValidator.go feat: Enhance host extraction from headers () 2024-05-23 23:51:19 +02:00
redirect.go create and move middlewares to seperate folder 2023-05-31 01:13:46 +04:30