Skip to content

Commit 1558afb

Browse files
committed
bugfix: Set cert path to root config folder
if cert is nested, the path is set in settings but it would be actually extracted to root config folder without any nesting. this change aim to fix that.
1 parent 48bbb6c commit 1558afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: eovpn/eovpn_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def glib_func():
324324
def dispatch():
325325
cert = download_remote_to_destination(self.get_setting(self.SETTING.REMOTE), self.EOVPN_OVPN_CONFIG_DIR)
326326
if len(cert) > 0:
327-
ca_path = os.path.join(self.EOVPN_OVPN_CONFIG_DIR, cert[-1])
327+
ca_path = os.path.join(self.EOVPN_OVPN_CONFIG_DIR, os.path.basename(cert[-1]))
328328
self.set_setting(self.SETTING.CA, ca_path)
329329

330330
if ca_button is not None:

0 commit comments

Comments
 (0)