mirror of https://github.com/MatrixTM/MHDDoS.git
wrap all code into function
simplify calling this module from the outside
This commit is contained in:
parent
b17a1c157d
commit
50ced7855b
6
start.py
6
start.py
|
|
@ -1294,7 +1294,7 @@ def handleProxyList(con, proxy_li, proxy_ty, url=None):
|
||||||
return proxies
|
return proxies
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main(argv):
|
||||||
with open(__dir__ / "config.json") as f:
|
with open(__dir__ / "config.json") as f:
|
||||||
con = load(f)
|
con = load(f)
|
||||||
with suppress(KeyboardInterrupt):
|
with suppress(KeyboardInterrupt):
|
||||||
|
|
@ -1450,3 +1450,7 @@ if __name__ == '__main__':
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
ToolsConsole.usage()
|
ToolsConsole.usage()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main(argv)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue