mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 19:43:39 +02:00
compare ports of same endianess for agent comparison
This commit is contained in:
parent
28beb3ecfc
commit
a725db5bd7
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ int addAgent(sockaddr_in agentAddress, void *audioData) {
|
||||||
|
|
||||||
for (i = 0; i < numAgents; i++) {
|
for (i = 0; i < numAgents; i++) {
|
||||||
if (strcmp(inet_ntoa(agentAddress.sin_addr), agents[i].address) == 0
|
if (strcmp(inet_ntoa(agentAddress.sin_addr), agents[i].address) == 0
|
||||||
&& agentAddress.sin_port == agents[i].port) {
|
&& ntohs(agentAddress.sin_port) == agents[i].port) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue