support {DATA} in tls-certificate and tls-key
This commit is contained in:
parent
5d2a3865a9
commit
47965f5fad
1 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue