From 21675ce0d2581597b0e0a727ab4cf6cfb796a037 Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 27 Feb 2018 01:07:46 +0000 Subject: Finish @Diadlo's network Family abstraction. The Family stuff in toxcore is a big mess. I'm sure I saw a bunch of bugs on the way, but I'm not verifying that code now, so the bugs stay. --- toxcore/tox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/tox.c') diff --git a/toxcore/tox.c b/toxcore/tox.c index 6b50c5e8..2f210209 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -155,7 +155,7 @@ Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error) ip_init(&m_options.proxy_info.ip_port.ip, m_options.ipv6enabled); if (m_options.ipv6enabled) { - m_options.proxy_info.ip_port.ip.family = TOX_AF_UNSPEC; + m_options.proxy_info.ip_port.ip.family = net_family_unspec; } if (addr_resolve_or_parse_ip(tox_options_get_proxy_host(options), &m_options.proxy_info.ip_port.ip, nullptr) == 0) { -- cgit v1.2.3