diff options
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 5d239be2..37ea4849 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -132,6 +132,7 @@ ACCESSORS(TOX_SAVEDATA_TYPE, savedata_, type) | |||
132 | ACCESSORS(size_t, savedata_, length) | 132 | ACCESSORS(size_t, savedata_, length) |
133 | ACCESSORS(tox_log_cb *, log_, callback) | 133 | ACCESSORS(tox_log_cb *, log_, callback) |
134 | ACCESSORS(void *, log_, user_data) | 134 | ACCESSORS(void *, log_, user_data) |
135 | ACCESSORS(bool, , local_discovery_enabled) | ||
135 | 136 | ||
136 | const uint8_t *tox_options_get_savedata_data(const struct Tox_Options *options) | 137 | const uint8_t *tox_options_get_savedata_data(const struct Tox_Options *options) |
137 | { | 138 | { |
@@ -153,6 +154,7 @@ void tox_options_default(struct Tox_Options *options) | |||
153 | options->udp_enabled = 1; | 154 | options->udp_enabled = 1; |
154 | options->proxy_type = TOX_PROXY_TYPE_NONE; | 155 | options->proxy_type = TOX_PROXY_TYPE_NONE; |
155 | options->hole_punching_enabled = true; | 156 | options->hole_punching_enabled = true; |
157 | options->local_discovery_enabled = true; | ||
156 | } | 158 | } |
157 | } | 159 | } |
158 | 160 | ||
@@ -218,6 +220,7 @@ Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error) | |||
218 | m_options.port_range[1] = options->end_port; | 220 | m_options.port_range[1] = options->end_port; |
219 | m_options.tcp_server_port = options->tcp_port; | 221 | m_options.tcp_server_port = options->tcp_port; |
220 | m_options.hole_punching_enabled = options->hole_punching_enabled; | 222 | m_options.hole_punching_enabled = options->hole_punching_enabled; |
223 | m_options.local_discovery_enabled = options->local_discovery_enabled; | ||
221 | 224 | ||
222 | m_options.log_callback = (logger_cb *)options->log_callback; | 225 | m_options.log_callback = (logger_cb *)options->log_callback; |
223 | m_options.log_user_data = options->log_user_data; | 226 | m_options.log_user_data = options->log_user_data; |