Hi Boris,
On Wed, 15 Feb 2023 at 23:19, Boris Grozev <
bo...@sip-communicator.org> wrote:
> I'm attaching an updated version, the previous has a typo that breaks
> it and an unnecessary line.
Thanks! After reviewing it today, I decided not to merge it. The
changes are a bit more invasive than I'm comfortale with. For example,
util.session should generally be unaware of HTTP as a concept. I
considered introducing the idea of a generic "real IP" (which at its
simplest would be a variable rename in your patch!). However that's
something we might tackle as part of a more generic API for proxied
connections in the future - we have some modules that already handle
haproxy's PROXY protocol, and we would like to make these more neatly
integrated with Prosody's core.
The good news is that I have an alternative solution for your problem.
I committed a trivial new API to net.http.server:
https://hg.prosody.im/0.12/rev/3a6dae39c70e
I've made a PR to the Jitsi module with the changes that I think would
need to be made to take advantage of this API:
https://github.com/jitsi/infra-configuration/pull/55
Hope this helps!
Regards,
Matthew