diff options
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 c1851f06..a4413c4f 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -809,6 +809,7 @@ int tox_add_tcp_relay(Tox *tox, const char *address, uint16_t port, const uint8_ | |||
809 | { | 809 | { |
810 | Messenger *m = tox; | 810 | Messenger *m = tox; |
811 | IP_Port ip_port, ip_port_v4; | 811 | IP_Port ip_port, ip_port_v4; |
812 | |||
812 | if (!addr_parse_ip(address, &ip_port.ip)) { | 813 | if (!addr_parse_ip(address, &ip_port.ip)) { |
813 | if (m->options.udp_disabled) /* Disable DNS when udp is disabled. */ | 814 | if (m->options.udp_disabled) /* Disable DNS when udp is disabled. */ |
814 | return 0; | 815 | return 0; |
@@ -837,6 +838,7 @@ int tox_bootstrap_from_address(Tox *tox, const char *address, uint16_t port, con | |||
837 | { | 838 | { |
838 | Messenger *m = tox; | 839 | Messenger *m = tox; |
839 | int ret = tox_add_tcp_relay(tox, address, port, public_key); | 840 | int ret = tox_add_tcp_relay(tox, address, port, public_key); |
841 | |||
840 | if (m->options.udp_disabled) { | 842 | if (m->options.udp_disabled) { |
841 | return ret; | 843 | return ret; |
842 | } else { /* DHT only works on UDP. */ | 844 | } else { /* DHT only works on UDP. */ |