Skip to content

Commit

Permalink
bugfix: Set cert path to root config folder
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jkotra committed Oct 14, 2023
1 parent 48bbb6c commit 1558afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eovpn/eovpn_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def glib_func():
def dispatch():
cert = download_remote_to_destination(self.get_setting(self.SETTING.REMOTE), self.EOVPN_OVPN_CONFIG_DIR)
if len(cert) > 0:
ca_path = os.path.join(self.EOVPN_OVPN_CONFIG_DIR, cert[-1])
ca_path = os.path.join(self.EOVPN_OVPN_CONFIG_DIR, os.path.basename(cert[-1]))
self.set_setting(self.SETTING.CA, ca_path)

if ca_button is not None:
Expand Down

0 comments on commit 1558afb

Please sign in to comment.