diff -ru glib-networking-2.68.1.orig/tls/openssl/gtlsclientconnection-openssl.c glib-networking-2.68.1/tls/openssl/gtlsclientconnection-openssl.c
--- glib-networking-2.68.1.orig/tls/openssl/gtlsclientconnection-openssl.c	2021-06-10 09:51:02.411903794 +0200
+++ glib-networking-2.68.1/tls/openssl/gtlsclientconnection-openssl.c	2021-06-10 09:51:34.980245194 +0200
@@ -407,8 +407,6 @@
             SSL_OP_NO_TLSv1;
   SSL_CTX_set_options (client->ssl_ctx, options);
 
-  SSL_CTX_clear_options (client->ssl_ctx, SSL_OP_LEGACY_SERVER_CONNECT);
-
   hostname = get_server_identity (client);
 
 #if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined (LIBRESSL_VERSION_NUMBER)
