mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Require TLS by default when connecting to Postgres servers.
This commit is contained in:
parent
b7615ccd86
commit
981b9e0409
@ -1709,7 +1709,7 @@
|
|||||||
# pgsql is more complex than described here, see the docs for #
|
# pgsql is more complex than described here, see the docs for #
|
||||||
# more: https://docs.inspircd.org/3/modules/pgsql #
|
# more: https://docs.inspircd.org/3/modules/pgsql #
|
||||||
#
|
#
|
||||||
#<database module="pgsql" name="mydb" user="myuser" pass="mypass" host="localhost" id="my_database" ssl="no">
|
#<database module="pgsql" name="mydb" user="myuser" pass="mypass" host="localhost" id="my_database" tls="yes">
|
||||||
|
|
||||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||||
# Muteban: Implements extended ban 'm', which stops anyone matching
|
# Muteban: Implements extended ban 'm', which stops anyone matching
|
||||||
|
@ -259,7 +259,7 @@ class SQLConn : public SQL::Provider, public EventHandler
|
|||||||
if (conf->readString("pass", item))
|
if (conf->readString("pass", item))
|
||||||
conninfo << " password = '" << item << "'";
|
conninfo << " password = '" << item << "'";
|
||||||
|
|
||||||
if (conf->getBool("ssl"))
|
if (conf->getBool("tls", conf->getBool("ssl", true)))
|
||||||
conninfo << " sslmode = 'require'";
|
conninfo << " sslmode = 'require'";
|
||||||
else
|
else
|
||||||
conninfo << " sslmode = 'disable'";
|
conninfo << " sslmode = 'disable'";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user