Skip to content

Commit c3baf27

Browse files
c1728p9geky
authored andcommitted
Fix SocketAddress constructor to support ipv6
Fix typo causing ipv6 addresses in the constructor to fail.
1 parent 1c0a7c2 commit c3baf27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)