From 234ac31d1fa0ff53757d9108b9a44800c452e541 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 27 Mar 2020 15:11:08 +0100 Subject: [PATCH] Fix #1894 --- database/mongodb/custom/driver.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/mongodb/custom/driver.pm b/database/mongodb/custom/driver.pm index bb7306021..cc9016c84 100644 --- a/database/mongodb/custom/driver.pm +++ b/database/mongodb/custom/driver.pm @@ -128,7 +128,7 @@ sub connect { $uri = $self->{protocol} . '://'; $uri .= $encoded_username . ':' . $encoded_password . '@' if ($encoded_username ne '' && $encoded_password ne ''); $uri .= $self->{hostname} if ($self->{hostname} ne ''); - $uri .= ':' . $self->{port} if ($self->{port} ne '' && $self->{protocol} eq 'mongodb+srv'); + $uri .= ':' . $self->{port} if ($self->{port} ne '' && $self->{protocol} ne 'mongodb+srv'); $self->{output}->output_add(long_msg => 'Connection URI: ' . $uri, debug => 1);