| Index: net/tools/quic/quic_server.cc
|
| diff --git a/net/tools/quic/quic_server.cc b/net/tools/quic/quic_server.cc
|
| index a5c1e5b2493a90c3c4ca622b6f0082e31e418fcf..66a9aa92b5dcfe17c88c34fb87afba7f1f1d9f31 100644
|
| --- a/net/tools/quic/quic_server.cc
|
| +++ b/net/tools/quic/quic_server.cc
|
| @@ -39,20 +39,23 @@ QuicServer::QuicServer()
|
| packets_dropped_(0),
|
| overflow_supported_(false),
|
| use_recvmmsg_(false),
|
| - crypto_config_(kSourceAddressTokenSecret, QuicRandom::GetInstance()) {
|
| + crypto_config_(kSourceAddressTokenSecret, QuicRandom::GetInstance()),
|
| + supported_versions_(QuicSupportedVersions()) {
|
| // Use hardcoded crypto parameters for now.
|
| config_.SetDefaults();
|
| Initialize();
|
| }
|
|
|
| -QuicServer::QuicServer(const QuicConfig& config)
|
| +QuicServer::QuicServer(const QuicConfig& config,
|
| + const QuicVersionVector& supported_versions)
|
| : port_(0),
|
| fd_(-1),
|
| packets_dropped_(0),
|
| overflow_supported_(false),
|
| use_recvmmsg_(false),
|
| config_(config),
|
| - crypto_config_(kSourceAddressTokenSecret, QuicRandom::GetInstance()) {
|
| + crypto_config_(kSourceAddressTokenSecret, QuicRandom::GetInstance()),
|
| + supported_versions_(supported_versions) {
|
| Initialize();
|
| }
|
|
|
| @@ -141,8 +144,9 @@ bool QuicServer::Listen(const IPEndPoint& address) {
|
| }
|
|
|
| epoll_server_.RegisterFD(fd_, this, kEpollFlags);
|
| - dispatcher_.reset(new QuicDispatcher(config_, crypto_config_, fd_,
|
| - &epoll_server_));
|
| + dispatcher_.reset(new QuicDispatcher(config_, crypto_config_,
|
| + supported_versions_,
|
| + fd_, &epoll_server_));
|
|
|
| return true;
|
| }
|
|
|