Skip to content

Commit 9a605d3

Browse files
ui: versions comparing improvements
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)
1 parent b05eace commit 9a605d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/opensnitch/utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ def show(help_str):
258258
class Utils():
259259
@staticmethod
260260
def check_versions(daemon_version):
261-
lMayor, lMinor, lPatch = gui_version.split(".")
262-
rMayor, rMinor, rPatch = daemon_version.split(".")
261+
lMayor, lMinor, lPatch = gui_version.split(".", 2)
262+
rMayor, rMinor, rPatch = daemon_version.split(".", 2)
263263
return lMayor != rMayor or (lMayor == rMayor and lMinor != rMinor)
264264

265265
@staticmethod

0 commit comments

Comments
 (0)