changed alert messages to use asio to string conversion for endpoint (fixes missing [] on IPv6 addresses)
This commit is contained in:
parent
9625648026
commit
d2e5f3919d
|
@ -1009,9 +1009,8 @@ namespace libtorrent
|
||||||
virtual std::string message() const
|
virtual std::string message() const
|
||||||
{
|
{
|
||||||
error_code ec;
|
error_code ec;
|
||||||
return "listening on " + endpoint.address().to_string(ec) + ":"
|
return "listening on " + boost::lexical_cast<std::string>(endpoint)
|
||||||
+ boost::lexical_cast<std::string>(endpoint.port()) + " failed: "
|
+ " failed: " + error.message();
|
||||||
+ error.message();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1031,8 +1030,7 @@ namespace libtorrent
|
||||||
virtual std::string message() const
|
virtual std::string message() const
|
||||||
{
|
{
|
||||||
error_code ec;
|
error_code ec;
|
||||||
return "successfully listening on " + endpoint.address().to_string(ec)
|
return "successfully listening on " + boost::lexical_cast<std::string>(endpoint);
|
||||||
+ ":" + boost::lexical_cast<std::string>(endpoint.port());
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue