From 6e8762b30a17b515deb74c62a3a98db4206d363e Mon Sep 17 00:00:00 2001 From: saneki Date: Fri, 27 Feb 2015 11:58:00 -0600 Subject: Allow for specifying the port range to use in Tox_Options --- toxcore/tox.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toxcore/tox.c') 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 } else { m_options.ipv6enabled = options->ipv6_enabled; m_options.udp_disabled = !options->udp_enabled; + m_options.port_range[0] = options->start_port; + m_options.port_range[1] = options->end_port; switch (options->proxy_type) { case TOX_PROXY_TYPE_HTTP: -- cgit v1.2.3