]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
log_db_daemon: Fix DSN construction (#1570)
authorAmos Jeffries <yadij@users.noreply.github.com>
Fri, 3 Nov 2023 12:24:20 +0000 (12:24 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Tue, 28 Nov 2023 01:03:38 +0000 (14:03 +1300)
src/log/DB/log_db_daemon.pl.in

index 9e1997701478ec38f4fc99072dc1f87f4fcbfa35..64bfa674575bf6d81e92656b57589c463f3957fe 100755 (executable)
@@ -392,7 +392,7 @@ my @db_fields = qw(
     );
 
 # perform db connection
-my $dsn = "DBI:mysql:database=$database" . ($host ne "localhost" ? ":$host" : "");
+my $dsn = "DBI:mysql:database=$database" . ($host ne "localhost" ? ";host=$host" : "");
 my $dbh;
 my $sth;
 eval {