NetworkSocketAPI
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Revision 124:d2656a514a27, committed 2016-05-16
- Comitter:
- Christopher Haster
- Date:
- Mon May 16 22:41:01 2016 -0500
- Parent:
- 123:556a038fdf63
- Child:
- 125:ea3a618e0818
- Commit message:
- Fix SocketAddress constructor to support ipv6
Fix typo causing ipv6 addresses in the constructor to fail.
Changed in this revision
SocketAddress.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SocketAddress.cpp Tue May 10 12:08:45 2016 -0500 +++ b/SocketAddress.cpp Mon May 16 22:41:01 2016 -0500 @@ -153,7 +153,7 @@ set_port(port); } else if (host && ipv6_is_valid(host)) { _ip_version = NSAPI_IPv6; - ipv4_from_address(_ip_bytes, host); + ipv6_from_address(_ip_bytes, host); set_port(port); } else { // DNS lookup