mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +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++) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue