mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:43:02 +01:00
not clear which error message is given for ipv6 failure
This commit is contained in:
parent
82e76a3b5b
commit
4d73f8b241
@ -689,13 +689,13 @@ static Tox *load_toxic(char *data_path)
|
|||||||
TOX_ERR_NEW new_err;
|
TOX_ERR_NEW new_err;
|
||||||
Tox *m = load_tox(data_path, &tox_opts, &new_err);
|
Tox *m = load_tox(data_path, &tox_opts, &new_err);
|
||||||
|
|
||||||
if (new_err == TOX_ERR_NEW_PORT_ALLOC && tox_opts.ipv6_enabled) {
|
if (new_err != TOX_ERR_NEW_OK && tox_opts.ipv6_enabled) {
|
||||||
queue_init_message("Falling back to ipv4");
|
queue_init_message("Falling back to ipv4");
|
||||||
tox_opts.ipv6_enabled = false;
|
tox_opts.ipv6_enabled = false;
|
||||||
m = load_tox(data_path, &tox_opts, &new_err);
|
m = load_tox(data_path, &tox_opts, &new_err);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m == NULL || new_err != TOX_ERR_NEW_OK)
|
if (new_err != TOX_ERR_NEW_OK)
|
||||||
exit_toxic_err("Tox network failed to initialize (tox_new failed with error %d)", new_err);
|
exit_toxic_err("Tox network failed to initialize (tox_new failed with error %d)", new_err);
|
||||||
|
|
||||||
init_tox_callbacks(m);
|
init_tox_callbacks(m);
|
||||||
|
Loading…
Reference in New Issue
Block a user