1
0
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:
Caleb Stewart 2021-11-28 21:19:03 -05:00
parent 0cd9a9b64f
commit b8d7876a97

View File

@ -101,7 +101,7 @@ def main():
# Print the version number and exit.
if args.version:
print(importlib.metadata.version("pwncat"))
print(importlib.metadata.version("pwncat-cs"))
return
# Create the session manager