summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/relay/relay-client.c')
-rw-r--r--src/plugins/relay/relay-client.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/relay/relay-client.c b/src/plugins/relay/relay-client.c
index 66f0b3e29..1fa56fa5b 100644
--- a/src/plugins/relay/relay-client.c
+++ b/src/plugins/relay/relay-client.c
@@ -379,6 +379,17 @@ relay_client_recv_text (struct t_relay_client *client, const char *data)
relay_client_set_status (client, RELAY_STATUS_DISCONNECTED);
}
+ if (weechat_hashtable_get (client->http_headers, "X-Real-IP")) {
+ weechat_printf_tags (NULL, "relay_client",
+ _("%s: websocket client %s%s%s has real IP \"%s\""),
+ RELAY_PLUGIN_NAME,
+ RELAY_COLOR_CHAT_CLIENT,
+ client->desc,
+ RELAY_COLOR_CHAT,
+ weechat_hashtable_get (client->http_headers, "X-Real-IP")
+ );
+ }
+
/* remove HTTP headers */
weechat_hashtable_free (client->http_headers);
client->http_headers = NULL;