tweaked type of ranch_ssl:connect/3