summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
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) {