summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-27 01:07:46 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-05-20 19:35:28 +0000
commit21675ce0d2581597b0e0a727ab4cf6cfb796a037 (patch)
treee1ac4ca63c5cc2b2dc78fcd5b20a8202eab98d9d /toxcore/tox.c
parent4f6ab0708c85f3e3da7726f6caecc381c6d21370 (diff)
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.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c2
1 files changed, 1 insertions, 1 deletions
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)
155 ip_init(&m_options.proxy_info.ip_port.ip, m_options.ipv6enabled); 155 ip_init(&m_options.proxy_info.ip_port.ip, m_options.ipv6enabled);
156 156
157 if (m_options.ipv6enabled) { 157 if (m_options.ipv6enabled) {
158 m_options.proxy_info.ip_port.ip.family = TOX_AF_UNSPEC; 158 m_options.proxy_info.ip_port.ip.family = net_family_unspec;
159 } 159 }
160 160
161 if (addr_resolve_or_parse_ip(tox_options_get_proxy_host(options), &m_options.proxy_info.ip_port.ip, nullptr) == 0) { 161 if (addr_resolve_or_parse_ip(tox_options_get_proxy_host(options), &m_options.proxy_info.ip_port.ip, nullptr) == 0) {