aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Blake <oak99sky@yahoo.co.uk>2021-02-18 22:17:07 +0000
committerGitHub <noreply@github.com>2021-02-18 22:17:07 +0000
commit62927206cee4f5417c111ad315419f336b1c48e1 (patch)
treed73b71083eb4215fd6059398916f2ee5dd385dfb
parent99999a2b0baccd225cc3816d3f9dd054a3eb4c58 (diff)
parent8bb65030503143fad2a19d40a8898ea5a7afdcb3 (diff)
Merge pull request #19247 from joseluismarti/mysql-localhost
Local connection to MySQL using Unix sockets
-rw-r--r--xbmc/dbwrappers/mysqldataset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/dbwrappers/mysqldataset.cpp b/xbmc/dbwrappers/mysqldataset.cpp
index 0198b73c09..02a02fa5b5 100644
--- a/xbmc/dbwrappers/mysqldataset.cpp
+++ b/xbmc/dbwrappers/mysqldataset.cpp
@@ -147,7 +147,7 @@ int MysqlDatabase::connect(bool create_new) {
return DB_CONNECTION_NONE;
std::string resolvedHost;
- if (CDNSNameCache::Lookup(host, resolvedHost))
+ if (!StringUtils::EqualsNoCase(host,"localhost") && CDNSNameCache::Lookup(host, resolvedHost))
{
CLog::Log(LOGDEBUG, "{} replacing configured host {} with resolved host {}", __FUNCTION__, host,
resolvedHost);