support {DATA} in tls-certificate and tls-key

This commit is contained in:
jesopo 2021-02-12 16:58:08 +00:00
parent 5d2a3865a9
commit 47965f5fad

View file

@ -95,8 +95,12 @@ class Server(IRCObject.Object):
self.connection_params.bindhost, self.connection_params.bindhost,
self.connection_params.tls, self.connection_params.tls,
tls_verify=self.get_setting("ssl-verify", True), tls_verify=self.get_setting("ssl-verify", True),
cert=self.bot.config.get("tls-certificate", None), cert=self.bot.config.get("tls-certificate", '').format(
key=self.bot.config.get("tls-key", None)) DATA=self.bot.data_directory
) or None,
key=self.bot.config.get("tls-key", '').format(
DATA=self.bot.data_directory
))
self.events.on("preprocess.connect").call(server=self) self.events.on("preprocess.connect").call(server=self)
self.socket.connect() self.socket.connect()