mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-30 02:20:11 +00:00
fix stun lookup returning 1 for port
This commit is contained in:
parent
97d47af882
commit
0aaba4588a
@ -207,8 +207,10 @@ SWITCH_DECLARE(switch_stun_packet_t *) switch_stun_packet_parse(uint8_t *buf, ui
|
|||||||
case SWITCH_STUN_ATTR_DESTINATION_ADDRESS:
|
case SWITCH_STUN_ATTR_DESTINATION_ADDRESS:
|
||||||
case SWITCH_STUN_ATTR_PRIORITY:
|
case SWITCH_STUN_ATTR_PRIORITY:
|
||||||
{
|
{
|
||||||
uint32_t *u = (uint32_t *)attr->value;
|
switch_stun_ip_t *ip = (switch_stun_ip_t *) attr->value;
|
||||||
*u = ntohl(*u);
|
ip->port = ntohs(ip->port);
|
||||||
|
//uint32_t *u = (uint32_t *)attr->value;
|
||||||
|
//*u = ntohl(*u);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SWITCH_STUN_ATTR_SOURCE_ADDRESS2:
|
case SWITCH_STUN_ATTR_SOURCE_ADDRESS2:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user