Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Include scope-id for IPv6.

  • Loading branch information...
commit 908a347ad16104bccb1df37005db8f5a05ae1282 1 parent d4c5db2
@pprindeville authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Net/src/IPAddress.cpp
View
3  Net/src/IPAddress.cpp
@@ -1180,7 +1180,8 @@ IPAddress::operator const sockaddr () const
#if defined(POCO_HAVE_IPv6)
} else {
poco_set_sin6_len((sockaddr_in6 *)&sock);
- memcpy(&((struct sockaddr_in6 *)&sock)->sin6_addr, addr(), sizeof(in6_addr));
+ memcpy(&((sockaddr_in6 *)&sock)->sin6_addr, addr(), sizeof(in6_addr));
+ ((sockaddr_in6 *)&sock)->sin6_scope_id = scope();
#endif
}
Please sign in to comment.
Something went wrong with that request. Please try again.