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, 2 insertions, 0 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index e95bbefb..fc6ffc2b 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -107,6 +107,8 @@ Tox *tox_new(const struct Tox_Options *options, const uint8_t *data, size_t leng
107 } else { 107 } else {
108 m_options.ipv6enabled = options->ipv6_enabled; 108 m_options.ipv6enabled = options->ipv6_enabled;
109 m_options.udp_disabled = !options->udp_enabled; 109 m_options.udp_disabled = !options->udp_enabled;
110 m_options.port_range[0] = options->start_port;
111 m_options.port_range[1] = options->end_port;
110 112
111 switch (options->proxy_type) { 113 switch (options->proxy_type) {
112 case TOX_PROXY_TYPE_HTTP: 114 case TOX_PROXY_TYPE_HTTP: