From d179fd900a89a41c8cf95a0f61caef4ec7c6c09e Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 3 Apr 2017 21:55:50 +0100 Subject: Add PROXY command. Not actually an IRC protocol command, it's a HAProxy trick supported by stunnel to indicate where the connection originally came from. Looks a little better on public servers. --- irc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'irc.h') diff --git a/irc.h b/irc.h index c56f847f..8a37b0ca 100644 --- a/irc.h +++ b/irc.h @@ -26,6 +26,8 @@ #ifndef _IRC_H #define _IRC_H +#include + #define IRC_MAX_LINE 512 #define IRC_MAX_ARGS 16 #define IRC_WORD_WRAP 425 @@ -270,6 +272,7 @@ extern GSList *irc_plugins; /* struct irc_plugin */ extern GSList *irc_connection_list; irc_t *irc_new(int fd); +void irc_set_hosts(irc_t *irc, const struct sockaddr *remote_addr, const socklen_t remote_addrlen); void irc_abort(irc_t *irc, int immed, char *format, ...) G_GNUC_PRINTF(3, 4); void irc_free(irc_t *irc); void irc_setpass(irc_t *irc, const char *pass); -- cgit v1.2.3