Opened 9 years ago
Last modified 6 years ago
#9084 new Bugs
boost::asio::ip::address::is_loopback() on mapped ip4 127.0.0.1
Reported by: | tmoers | Owned by: | chris_kohlhoff |
---|---|---|---|
Milestone: | To Be Determined | Component: | asio |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | ip6, address_v6 | Cc: |
Description
boost::asio::ip::address_vs::is_loopback() returns false on the address '::ffff:127.0.0.1'. Maybe this is the correct behavior, but it was certainly unexpected to me.
(the ip4 address '127.0.0.1' maps to '::ffff:127.0.0.1').
Note:
See TracTickets
for help on using tickets.
I believe I've coded a solution to this ticket. I've submitted it as a pull request to the Boost.Asio repository.
https://github.com/boostorg/asio/pull/42