]> 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)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 3 Nov 2023 19:13:25 +0000 (19:13 +0000)
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 {