diff options
| author | 2021-08-28 14:46:53 +0100 | |
|---|---|---|
| committer | 2021-08-28 14:49:10 +0100 | |
| commit | 981b9e0409fda2bc8b78f9da6d92a0f7cf0a6895 (patch) | |
| tree | 8dcb067b55d7a94f8bc8c8ce69d7d9ffc6eee1e5 /src/modules/extra/m_pgsql.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Require TLS by default when connecting to Postgres servers.
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index a5eb3c0ec..6a7ea4ddb 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -259,7 +259,7 @@ class SQLConn : public SQL::Provider, public EventHandler if (conf->readString("pass", item)) conninfo << " password = '" << item << "'"; - if (conf->getBool("ssl")) + if (conf->getBool("tls", conf->getBool("ssl", true))) conninfo << " sslmode = 'require'"; else conninfo << " sslmode = 'disable'"; |
