Skip to content

Commit

Permalink
fixed amp methods
Browse files Browse the repository at this point in the history
  • Loading branch information
MHProDev committed Mar 6, 2022
1 parent a6db42b commit 0dbbc99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,10 +1349,10 @@ def handleProxyList(con, proxy_li, proxy_ty, url=None):
if len(argv) >= 6:
argfive = argv[5].strip()
if argfive:
refl_li = Path(__dir__ / "files/proxies/" / argfive)
if refl_li.exists():
if method not in {"NTP", "DNS", "RDP", "CHAR", "MEM", "ARD"}:
exit("this method cannot use for amplification")
refl_li = Path(__dir__ / "files" / argfive)
if method in {"NTP", "DNS", "RDP", "CHAR", "MEM", "ARD"}:
if not refl_li.exists():
exit("The reflector file doesn't exist")
if len(argv) == 7:
logger.setLevel("DEBUG")
ref = set(a.strip()
Expand All @@ -1364,7 +1364,7 @@ def handleProxyList(con, proxy_li, proxy_ty, url=None):
if len(argv) == 8:
logger.setLevel("DEBUG")
proxy_ty = int(argfive)
proxy_li = Path(__dir__ / "files/proxies/" / argv[6].strip())
proxy_li = Path(__dir__ / "files/proxies" / argv[6].strip())
proxies = handleProxyList(con, proxy_li, proxy_ty)
if method not in {"MINECRAFT", "TCP"}:
exit("this method cannot use for layer4 proxy")
Expand Down

0 comments on commit 0dbbc99

Please sign in to comment.