File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,10 @@ protected static function getSslOptions(AMQPConnectionConfig $config): array
163163 if (method_exists ($ config , 'getSslCaPath ' )) {
164164 $ path = $ config ->getSslCaPath ();
165165 }
166+ $ securityLevel = null ;
167+ if (method_exists ($ config , 'getSslSecurityLevel ' )) {
168+ $ securityLevel = $ config ->getSslSecurityLevel ();
169+ }
166170
167171 return array_filter ([
168172 'cafile ' => $ config ->getSslCaCert (),
@@ -173,7 +177,7 @@ protected static function getSslOptions(AMQPConnectionConfig $config): array
173177 'verify_peer_name ' => $ config ->getSslVerifyName (),
174178 'passphrase ' => $ config ->getSslPassPhrase (),
175179 'ciphers ' => $ config ->getSslCiphers (),
176- 'security_level ' => $ config -> getSslSecurityLevel () ,
180+ 'security_level ' => $ securityLevel ,
177181 ], static function ($ value ) {
178182 return $ value !== null ;
179183 });
You can’t perform that action at this time.
0 commit comments