diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2017-04-03 21:55:50 +0100 |
---|---|---|
committer | Wilmer van der Gaast <github@wilmer.gaast.net> | 2017-04-06 21:25:08 +0100 |
commit | d179fd900a89a41c8cf95a0f61caef4ec7c6c09e (patch) | |
tree | 0d0098865b464d2b4772c6ddd42e50dac1c189e3 /irc.h | |
parent | 60141cfa8c26971ec2258118a661609c7a15d261 (diff) |
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.
Diffstat (limited to 'irc.h')
-rw-r--r-- | irc.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -26,6 +26,8 @@ #ifndef _IRC_H #define _IRC_H +#include <sys/socket.h> + #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); |