Use the hostname from the URL when connecting the QUIC toy client. gfe-relnote: n/a - not used in the GFE PiperOrigin-RevId: 252093290 Change-Id: I24736d026c747b89343ffa149e493452cd4bedaf
diff --git a/quic/tools/quic_toy_client.cc b/quic/tools/quic_toy_client.cc index f6e2e15..4fa00db 100644 --- a/quic/tools/quic_toy_client.cc +++ b/quic/tools/quic_toy_client.cc
@@ -221,7 +221,7 @@ // Build the client, and try to connect. std::unique_ptr<QuicSpdyClientBase> client = client_factory_->CreateClient( - host, port, versions, std::move(proof_verifier)); + url.host(), port, versions, std::move(proof_verifier)); int32_t initial_mtu = GetQuicFlag(FLAGS_initial_mtu); client->set_initial_max_packet_length(