Skip to content

Commit 64cd1f3

Browse files
committed
Fix SocketAddress constructor to support ipv6
Fix typo causing ipv6 addresses in the constructor to fail.
1 parent cde78ec commit 64cd1f3

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)