diff --git a/lib/Mojo/IOLoop/TLS.pm b/lib/Mojo/IOLoop/TLS.pm index 87c9ef9adc..a32b550923 100644 --- a/lib/Mojo/IOLoop/TLS.pm +++ b/lib/Mojo/IOLoop/TLS.pm @@ -59,7 +59,7 @@ sub _expand { } else { $tls->{SSL_hostname} = IO::Socket::SSL->can_client_sni ? $args->{address} : ''; - $tls->{SSL_verifycn_name} = $args->{address}; + $tls->{SSL_verifycn_name} ||= $args->{address}; } return $tls;