From f79e8bb4a4e5e05c6ec504437da7d7125a9e1b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Wed, 8 Feb 2017 20:34:54 -0800 Subject: [PATCH] Add a warning when using a proxy with UDP enabled As per the Tox Client Standard. --- src/twc-profile.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/twc-profile.c b/src/twc-profile.c index ccdcf64..f0ade1a 100644 --- a/src/twc-profile.c +++ b/src/twc-profile.c @@ -311,6 +311,14 @@ twc_profile_load(struct t_twc_profile *profile) TOX_PROXY_TYPE_SOCKS5 ? "SOCKS5" : NULL, options.proxy_host, options.proxy_port); + + if (options.udp_enabled) + weechat_printf(profile->buffer, + "%swarning: Tox is configured to use a proxy, but " + " UDP is not disabled. Your IP address may not be " + "hidden.", + weechat_prefix("error"), + options.proxy_host, options.proxy_port); } // try loading data file