Skip to content

Commit 6ccb193

Browse files
committed
Merge pull request #99 from c1728p9/fix_ipv6_addr
Fix SocketAddress constructor to support ipv6
2 parents cde78ec + 64cd1f3 commit 6ccb193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/NetworkSocketAPI/SocketAddress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ SocketAddress::SocketAddress(NetworkStack *iface, const char *host, uint16_t por
153153
set_port(port);
154154
} else if (host && ipv6_is_valid(host)) {
155155
_ip_version = NSAPI_IPv6;
156-
ipv4_from_address(_ip_bytes, host);
156+
ipv6_from_address(_ip_bytes, host);
157157
set_port(port);
158158
} else {
159159
// DNS lookup

0 commit comments

Comments
 (0)