Messenger.c:

- remove local PORT definition in favor of TOX_PORT_DEFAULT
This commit is contained in:
Coren[m] 2013-09-12 16:07:51 +02:00
parent a74cfaea81
commit 0cfbe004ef

View File

@ -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);