Index: net/quic/quic_stream_factory.cc |
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc |
index ca4d3cb56e3d4d5b195a8ab79e4484dd8150acc4..7c7c336c89f923f4eb2b9796dac0d98153ed1a46 100644 |
--- a/net/quic/quic_stream_factory.cc |
+++ b/net/quic/quic_stream_factory.cc |
@@ -146,6 +146,16 @@ int QuicStreamFactory::Job::DoResolveHostComplete(int rv) { |
if (rv != OK) |
return rv; |
+ // TODO(rch): remove this code! |
+ AddressList::iterator it = address_list_.begin(); |
+ while (it != address_list_.end()) { |
+ if (it->GetFamily() == ADDRESS_FAMILY_IPV6) { |
+ it = address_list_.erase(it); |
+ } else { |
+ it++; |
+ } |
+ } |
+ |
DCHECK(!factory_->HasActiveSession(host_port_proxy_pair_)); |
io_state_ = STATE_CONNECT; |
return OK; |