Skip to content

Commit

Permalink
ui: versions comparing improvements
Browse files Browse the repository at this point in the history
When comparing UI/daemon versions to see if they're compatible, we only
use the first 2 components (1.7.xxx), so discard the rest to allow
different versions (1.6.5.1, 1.6.5-1, 1.6.5-rc1, etc)
  • Loading branch information
gustavo-iniguez-goya committed Feb 9, 2024
1 parent b05eace commit 9a605d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/opensnitch/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ def show(help_str):
class Utils():
@staticmethod
def check_versions(daemon_version):
lMayor, lMinor, lPatch = gui_version.split(".")
rMayor, rMinor, rPatch = daemon_version.split(".")
lMayor, lMinor, lPatch = gui_version.split(".", 2)
rMayor, rMinor, rPatch = daemon_version.split(".", 2)
return lMayor != rMayor or (lMayor == rMayor and lMinor != rMinor)

@staticmethod
Expand Down

0 comments on commit 9a605d3

Please sign in to comment.