1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

core: convert proxy option ipv6 from boolean to enum (disable, auto, force) (issue #2164)

This commit is contained in:
Sébastien Helleu
2024-08-04 23:43:05 +02:00
parent 5fe3b38892
commit 4e1a0731e7
7 changed files with 102 additions and 13 deletions
+10
View File
@@ -43,6 +43,15 @@ enum t_proxy_type
PROXY_NUM_TYPES,
};
enum t_proxy_ipv6
{
PROXY_IPV6_DISABLE = 0,
PROXY_IPV6_AUTO,
PROXY_IPV6_FORCE,
/* number of IPv6 options */
PROXY_NUM_IPV6,
};
struct t_proxy
{
char *name; /* proxy name */
@@ -56,6 +65,7 @@ struct t_proxy
extern char *proxy_option_string[];
extern char *proxy_type_string[];
extern char *proxy_ipv6_string[];
extern struct t_proxy *weechat_proxies;
extern struct t_proxy *last_weechat_proxy;
extern struct t_proxy *weechat_temp_proxies;