Skip to content
Browse files

Separate port in DB string

  • Loading branch information...
1 parent 812ba09 commit 1c3f29eac51d323c4dfade968f2337882e50e632 @jcameron jcameron committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 bacula-backup/bacula-backup-lib.pl
View
4 bacula-backup/bacula-backup-lib.pl
@@ -1187,7 +1187,11 @@ sub make_dbistr
$rv = $db;
}
if ($host) {
+ ($host, $port) = split(/:/, $host);
$rv .= ";host=$host";
+ if ($port) {
+ $rv .= ";port=$port";
+ }
}
return $rv;
}

0 comments on commit 1c3f29e

Please sign in to comment.
Something went wrong with that request. Please try again.