Skip to content

Commit a08cfe6

Browse files
committed
Correctly disable middlebox compat
1 parent 3a9eabf commit a08cfe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssl/ssl_quic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int SSL_CTX_set_quic_method(SSL_CTX *ctx, const SSL_QUIC_METHOD *quic_method)
173173
break;
174174
}
175175
ctx->quic_method = quic_method;
176-
ctx->options &= SSL_OP_ENABLE_MIDDLEBOX_COMPAT;
176+
ctx->options &= ~SSL_OP_ENABLE_MIDDLEBOX_COMPAT;
177177
return 1;
178178
}
179179

@@ -189,7 +189,7 @@ int SSL_set_quic_method(SSL *ssl, const SSL_QUIC_METHOD *quic_method)
189189
break;
190190
}
191191
ssl->quic_method = quic_method;
192-
ssl->options &= SSL_OP_ENABLE_MIDDLEBOX_COMPAT;
192+
ssl->options &= ~SSL_OP_ENABLE_MIDDLEBOX_COMPAT;
193193
return 1;
194194
}
195195

0 commit comments

Comments
 (0)