summaryrefslogtreecommitdiff
path: root/miniircd
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2015-08-04 10:45:40 +0200
committerJoel Rosdahl <joel@rosdahl.net>2015-08-04 10:45:40 +0200
commit9452a026ee871b61620820dd153d96ced3462070 (patch)
tree4e5aaea29dbe4c779d0061bba396664afded9c61 /miniircd
parented76e15e99d825caac9f80cb3128cb39cbb7e1e8 (diff)
downloadminiircd-9452a026ee871b61620820dd153d96ced3462070.tar.gz
miniircd-9452a026ee871b61620820dd153d96ced3462070.zip
Find certificate specified with relative path when using --daemon
Diffstat (limited to 'miniircd')
-rwxr-xr-xminiircd5
1 files changed, 5 insertions, 0 deletions
diff --git a/miniircd b/miniircd
index 6d81189..34847e8 100755
--- a/miniircd
+++ b/miniircd
@@ -643,6 +643,11 @@ class Server(object):
self.setuid = options.setuid
self.statedir = options.statedir
+ # Find certificate after daemonization if path is relative:
+ if self.ssl_pem_file and os.path.exists(self.ssl_pem_file):
+ self.ssl_pem_file = os.path.abspath(self.ssl_pem_file)
+ # else: might exist in the chroot jail, so just continue
+
if options.listen:
self.address = socket.gethostbyname(options.listen)
else: