diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 166f9779..1b276602 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -639,13 +639,12 @@ int write_cryptpacket_id(Messenger *m, int friendnumber, uint8_t packet_id, uint /* Interval in seconds between LAN discovery packet sending. */ #define LAN_DISCOVERY_INTERVAL 60 -#define PORT 33445 /* Send a LAN discovery packet every LAN_DISCOVERY_INTERVAL seconds. */ static void LANdiscovery(Messenger *m) { if (m->last_LANdiscovery + LAN_DISCOVERY_INTERVAL < unix_time()) { - send_LANdiscovery(htons(PORT), m->net_crypto); + send_LANdiscovery(TOX_PORT_DEFAULT, m->net_crypto); m->last_LANdiscovery = unix_time(); } } @@ -660,7 +659,7 @@ Messenger *initMessenger(uint8_t ipv6enabled) IP ip; ip_init(&ip, ipv6enabled); - m->net = new_networking(ip, PORT); + m->net = new_networking(ip, TOX_PORT_DEFAULT); if (m->net == NULL) { free(m);