mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-24 01:25:37 +01:00
Fix --version
output
As noted by @DanaEpp in #217, `--version` is outputting the wrong version number. This is due to it passing the old package name to ``importlib.metadata.version()``. This actually causes an unhandled exception if you don't also have the `pwncat` package installed.
This commit is contained in:
parent
0cd9a9b64f
commit
b8d7876a97
@ -101,7 +101,7 @@ def main():
|
|||||||
|
|
||||||
# Print the version number and exit.
|
# Print the version number and exit.
|
||||||
if args.version:
|
if args.version:
|
||||||
print(importlib.metadata.version("pwncat"))
|
print(importlib.metadata.version("pwncat-cs"))
|
||||||
return
|
return
|
||||||
|
|
||||||
# Create the session manager
|
# Create the session manager
|
||||||
|
Loading…
Reference in New Issue
Block a user