mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 17:33:08 +00:00
Don't use hard coded port number.
This commit is contained in:
parent
8d30acedc8
commit
313a6fbadc
2
peers.c
2
peers.c
@ -192,7 +192,7 @@ int sendToPeers(unsigned char *packet,int packet_len,int method,int peerId,struc
|
||||
|
||||
bzero(&peer_addr, sizeof(peer_addr));
|
||||
peer_addr.sin_family=AF_INET;
|
||||
peer_addr.sin_port = htons(4110);
|
||||
peer_addr.sin_port = htons(PORT_DNA);
|
||||
|
||||
if (method==REQ_PARALLEL) i=0; else { i=peerId; maxPeer=i; }
|
||||
for(;i<=maxPeer;i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user