forked fromglynos/cpp-netlib
- Notifications
You must be signed in to change notification settings - Fork425
Closed
Description
exceptions is thrown in this line:
ip_stream << socket_.remote_endpoint().address().to_v4().to_string() << ': '<<socket_.remote_endpoint().port();
Method to_v4 throws "bad_cast" when address is considered as v6 address.
For me its looks like bug, because it may be not obvious if listening address will be considered as v6 address. I faced with this problem when deployed application to Ubuntu 14.04 server, and run it on "localhost" address. In server address "localhost" is linked both to 127.0.0.1 ( v4 address ) and to ::1/128 (v6 address). Because of this application crashed on server, but runs perfectly on machines without ip v6 installed.
Metadata
Metadata
Assignees
Labels
No labels