mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-08 13:20:04 +03:00
fix compilation when libproxyprotocol is not present
This commit is contained in:
parent
5ad1ea1e25
commit
0e7885bc9f
@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_PROXYPROTOCOL
|
||||||
|
|
||||||
#include <proxy_protocol.h>
|
#include <proxy_protocol.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
@ -112,3 +114,5 @@ int pp_write_header(int pp_version, struct connection* cnx)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_PROXYPROTOCOL */
|
||||||
|
@ -8,7 +8,7 @@ int pp_write_header(int pp_version, struct connection* cnx);
|
|||||||
|
|
||||||
#else /* HAVE_PROXYPROTOCOL */
|
#else /* HAVE_PROXYPROTOCOL */
|
||||||
|
|
||||||
static inline int pp_write_header(int pp_version, struct connection* cnx) {}
|
static inline int pp_write_header(int pp_version, struct connection* cnx) { return 0; }
|
||||||
|
|
||||||
#endif /* HAVE_PROXYPROTOCOL */
|
#endif /* HAVE_PROXYPROTOCOL */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user