fixed issues

This commit is contained in:
MHProDev 2022-02-28 01:46:24 +03:30
parent 45f94b075e
commit 27e25eccac

View File

@ -747,9 +747,12 @@ if __name__ == '__main__':
method = one
event = Event()
if method not in Methods.ALL_METHODS:
exit("Method Not Found %s" % ", ".join(Methods.ALL_METHODS))
if method in Methods.LAYER7_METHODS:
urlraw = argv[2].strip()
if not urlraw.startswith("http://"): urlraw = "http://" + urlraw
if not urlraw.startswith("http"): urlraw = "http://" + urlraw
url = URL(urlraw)
threads = int(argv[4])
rpc = int(argv[6])