FS-7499: copy port to where apr keeps it too
This commit is contained in:
parent
2983c7e6df
commit
0c56081975
|
@ -2003,10 +2003,14 @@ SWITCH_DECLARE(int) switch_cp_addr(switch_sockaddr_t *sa1, switch_sockaddr_t *sa
|
|||
if (ss1->sa_family != ss2->sa_family)
|
||||
return 0;
|
||||
|
||||
sa1->port = sa2->port;
|
||||
sa1->family = sa2->family;
|
||||
|
||||
switch (ss1->sa_family) {
|
||||
case AF_INET:
|
||||
s1->sin_addr.s_addr = s2->sin_addr.s_addr;
|
||||
s1->sin_port = s2->sin_port;
|
||||
|
||||
return 1;
|
||||
case AF_INET6:
|
||||
if (s16->sin6_addr.s6_addr && s26->sin6_addr.s6_addr) {
|
||||
|
|
Loading…
Reference in New Issue