diff options
author | irungentoo <irungentoo@gmail.com> | 2015-03-02 21:03:34 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-03-02 21:03:34 -0500 |
commit | 7a82565c8c6f1ddb3de083d9676a593a165d4c4f (patch) | |
tree | 906bd287ee514a794a6464f284d3b2fed2d02492 /toxcore/tox.c | |
parent | 36c3a270fd5fff5e33371a91861db16e5816964a (diff) | |
parent | 6e8762b30a17b515deb74c62a3a98db4206d363e (diff) |
Merge branch 'port_range_option' of https://github.com/saneki/toxcore into new_api
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 2 |
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: |