Opened 8 years ago

#11108 new Bugs

boost asio from_string rejects valid ipv6 address

Reported by: mark andrews <mandrews58@…> Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

from RFC 4291 2.2.2, '::2:3:4:5:6:7:8' is a valid ipv6 address
following code incorrectly sets ec.m_val to 10022

std::string thost("::2:3:4:5:6:7:8");
boost::system::error_code ec;
addr = boost::asio::ip::address::from_string(thost, ec);

Change History (0)

Note: See TracTickets for help on using tickets.