Skip to content

Commit 8f3ea98

Browse files
wiegandmbjoernricks
authored andcommitted
Fix: Correctly determine GMP 22.7 as supported protocol
1 parent 9cbda51 commit 8f3ea98

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gvm/protocols/gmp/_gmp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ def determine_supported_gmp(self) -> SUPPORTED_GMP_VERSIONS:
9191
gmp_class = GMPv224
9292
elif major_version == 22 and minor_version == 5:
9393
gmp_class = GMPv225
94-
elif major_version == 22 and minor_version >= 6:
94+
elif major_version == 22 and minor_version == 6:
9595
gmp_class = GMPv226
96-
if minor_version > 6:
96+
elif major_version == 22 and minor_version >= 7:
97+
gmp_class = GMPv227
98+
if minor_version > 7:
9799
warnings.warn(
98100
"Remote manager daemon uses a newer GMP version than "
99101
f"supported by python-gvm {__version__}. Please update to "

0 commit comments

Comments
 (0)