proxyprotocol on client-side can be removed on server side, and its info is then logged

This commit is contained in:
Yves Rutschle committed 2025-09-10 12:14:41 +02:00
1 parent eea50a97fc
commit 6905498d60
8 files changed
+62 -10

No files matched your search

+2
View File
@@ -6,12 +6,14 @@
int pp_write_header(int pp_version, struct connection* cnx);
int pp_log_connection(char* buffer, ssize_t buffer_len);
int pp_header_len(char* buffer, int len);
#else /* HAVE_PROXYPROTOCOL */
static inline int pp_write_header(int pp_version, struct connection* cnx) { return 0; }
static int pp_log_connection(char* buffer, ssize_t buffer_len) { return 0; }
static inline int pp_header_len(char*, int) { return 0; }
#endif /* HAVE_PROXYPROTOCOL */