Mongodb shell TLS SNI error when connecting to Atlas Shared cluster through local tcp proxy

Hello,

Trying to directly connect to a MongoDB Atlas Shared cluster (M2) using mongosh through local tcp proxy.
(replace %REPLICA_SET%, %DATABASE% and %USERNAME%)

mongosh "mongodb://127.0.0.1:43287/%DATABASE%?authSource=admin&replicaSet=%REPLICA_SET%&directConnection=true&readPreference=primaryPreferred" --username %USERNAME% --tls --tlsAllowInvalidHostnames
Error message:
MongoServerSelectionError: no SNI name sent, make sure using a MongoDB 3.4+ driver/shell.

mongosh version is 1.5.0

It that possible to connect to 127.0.0.1:43287 and send SNI server name at the same time?

Thanks