tokers commented on issue #7011:
URL: https://github.com/apache/apisix/issues/7011#issuecomment-1123064644
> > That's not so generic. APISIX should have a generic solution. Such as
using the HTTPS port (we can know it from `config.yaml` even if XFF header
missing.
>
> It means place one initial variable in `config.yaml` and then fetch the
custom value from XFF?
Yes. But we can have a custom logic that just get the HTTPS port from the
`config.yaml`.
```
if X-Forwarded-Port exists then
using X-Forwarded-Port
else
using HTTPS port from config.yaml
end
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]