Skip to content

Conversation

@ilmich
Copy link
Contributor

@ilmich ilmich commented Jan 15, 2026

Hi,
I have a darkhttpd deployment behind stunnel for TLS support.
I implemented a limited subset of the human readable proxy protocol v1 supported by stunnel to obtain the client's real IP address (and not the stunnel IP). Since my configuration also allows access plain http, the implementation doesn't require it even when enabled.
Protocol validation is minimal, but I believe it's sufficient to cover most cases (for example, an invalid IP address is simply ignored).

Added the --proxy-protocol parameter to enable minimal support for proxy protocol v1.
This is useful for obtaining the real remote IP address if using stunnel (for example).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant