forked from Mirrors/freeswitch
FSCORE-355
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13120 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0f08e7db06
commit
a935a03182
@ -1155,7 +1155,7 @@ SWITCH_DECLARE(int) switch_build_uri(char *uri,
|
|||||||
|
|
||||||
if (flags & SWITCH_URI_NO_SCOPE && sa->family == AF_INET6) {
|
if (flags & SWITCH_URI_NO_SCOPE && sa->family == AF_INET6) {
|
||||||
memcpy(&ss, &sa->sa, sa->salen);
|
memcpy(&ss, &sa->sa, sa->salen);
|
||||||
((struct sockaddr_in6*) &ss)->sin6_scope_id = 0;
|
((struct sockaddr_in6*) (intptr_t) &ss)->sin6_scope_id = 0;
|
||||||
addr = (const struct sockaddr*) &ss;
|
addr = (const struct sockaddr*) &ss;
|
||||||
} else {
|
} else {
|
||||||
addr = (const struct sockaddr*) &sa->sa;
|
addr = (const struct sockaddr*) &sa->sa;
|
||||||
|
Loading…
Reference in New Issue
Block a user