Opened 13 years ago

Closed 13 years ago

#3143 closed Bugs (invalid)

Bug in windows IPv6 address to string conversion

Reported by: cheesy4poofs@… Owned by: chris_kohlhoff
Milestone: Boost 1.40.0 Component: asio
Version: Boost 1.39.0 Severity: Problem
Keywords: asio, %11, ipv6 Cc:

Description

I've noticed a bug in Windows 7 where I connect to a server and I print the client's ipv6 address to a log message. The string address that is returned from the following function always has a %11 at the end:

address_v6.hpp:124

/ Get the address as a string. std::string to_string() const {

boost::system::error_code ec; std::string addr = to_string(ec); boost::asio::detail::throw_error(ec); return addr;

}

Example return value: fe80::8ced:2b49:90d5:7c3b%11

Change History (1)

comment:1 by chris_kohlhoff, 13 years ago

Resolution: invalid
Status: newclosed

It looks like your address has an IPv6 scope id.

Note: See TracTickets for help on using tickets.