Skip to content

Commit

Permalink
fix: flatpak - openvpn3 version check crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotra committed Jun 27, 2023
1 parent a0b0ed3 commit 5713cf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions eovpn/connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def __init__(self, update_callback):
super().__init__("OpenVPN3")

self.ovpn3 = _libopenvpn3.lib
self.ffi = _libeovpn_nm.ffi
self.ffi = _libopenvpn3.ffi

self.callback = update_callback
self.config_path = None
Expand Down Expand Up @@ -200,7 +200,10 @@ def resume(self):
self.ovpn3.resume_vpn()

def version(self) -> str:
return self.to_string(self.ovpn3.p_get_version(), True)
v = self.ovpn3.p_get_version()
if v:
return self.to_string(self.ovpn3.p_get_version(), True)
return None

def status(self) -> bool:
return self.ovpn3.p_get_connection_status()
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('eovpn',
version: '1.28',
version: '1.28.1',
meson_version: '>= 0.60.0'
)

Expand Down

0 comments on commit 5713cf1

Please sign in to comment.