Enable all versions in toy server

gfe-relnote: n/a, test-tool only
PiperOrigin-RevId: 278406686
Change-Id: I5200145e658bb9a2362f46f44d6fb1099bbcb437
diff --git a/quic/tools/quic_toy_server.cc b/quic/tools/quic_toy_server.cc
index fdb1bb6..390dcf6 100644
--- a/quic/tools/quic_toy_server.cc
+++ b/quic/tools/quic_toy_server.cc
@@ -62,12 +62,13 @@
   ParsedQuicVersionVector supported_versions;
   if (GetQuicFlag(FLAGS_quic_ietf_draft)) {
     QuicVersionInitializeSupportForIetfDraft();
-    ParsedQuicVersion version(PROTOCOL_TLS1_3, QUIC_VERSION_99);
-    QuicEnableVersion(version);
-    supported_versions = {version};
+    supported_versions = {ParsedQuicVersion(PROTOCOL_TLS1_3, QUIC_VERSION_99)};
   } else {
     supported_versions = AllSupportedVersions();
   }
+  for (const auto& version : supported_versions) {
+    QuicEnableVersion(version);
+  }
   auto proof_source = quic::CreateDefaultProofSource();
   auto backend = backend_factory_->CreateBackend();
   auto server = server_factory_->CreateServer(