examples: properly check for supported versions in C server examples
diff --git a/examples/http3-server.c b/examples/http3-server.c
index cf1a904..e2b0810 100644
--- a/examples/http3-server.c
+++ b/examples/http3-server.c
@@ -255,7 +255,7 @@
         HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io);
 
         if (conn_io == NULL) {
-            if (version != QUICHE_PROTOCOL_VERSION) {
+            if (!quiche_version_is_supported(version)) {
                 fprintf(stderr, "version negotiation\n");
 
                 ssize_t written = quiche_negotiate_version(scid, scid_len,
diff --git a/examples/server.c b/examples/server.c
index d068f25..3a49440 100644
--- a/examples/server.c
+++ b/examples/server.c
@@ -243,7 +243,7 @@
         HASH_FIND(hh, conns->h, dcid, dcid_len, conn_io);
 
         if (conn_io == NULL) {
-            if (version != QUICHE_PROTOCOL_VERSION) {
+            if (!quiche_version_is_supported(version)) {
                 fprintf(stderr, "version negotiation\n");
 
                 ssize_t written = quiche_negotiate_version(scid, scid_len,