Skip to content

Commit 3ceb0e3

Browse files
committed
Merge pull request cpp-netlib#614 from deanberris/ipv6-support
Do not assume ipv4 for source
2 parents 620a0c5 + 218cdba commit 3ceb0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/network/protocol/http/server/async_connection.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ struct async_connection
387387

388388
void start() {
389389
typename ostringstream<Tag>::type ip_stream;
390-
ip_stream << socket_.remote_endpoint().address().to_v4().to_string() << ':'
390+
ip_stream << socket_.remote_endpoint().address().to_string() << ':'
391391
<< socket_.remote_endpoint().port();
392392
request_.source = ip_stream.str();
393393
read_more(method);

0 commit comments

Comments
 (0)