Skip to content

Commit 0dbbc99

Browse files
committed
fixed amp methods
1 parent a6db42b commit 0dbbc99

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

start.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,10 +1349,10 @@ def handleProxyList(con, proxy_li, proxy_ty, url=None):
13491349
if len(argv) >= 6:
13501350
argfive = argv[5].strip()
13511351
if argfive:
1352-
refl_li = Path(__dir__ / "files/proxies/" / argfive)
1353-
if refl_li.exists():
1354-
if method not in {"NTP", "DNS", "RDP", "CHAR", "MEM", "ARD"}:
1355-
exit("this method cannot use for amplification")
1352+
refl_li = Path(__dir__ / "files" / argfive)
1353+
if method in {"NTP", "DNS", "RDP", "CHAR", "MEM", "ARD"}:
1354+
if not refl_li.exists():
1355+
exit("The reflector file doesn't exist")
13561356
if len(argv) == 7:
13571357
logger.setLevel("DEBUG")
13581358
ref = set(a.strip()
@@ -1364,7 +1364,7 @@ def handleProxyList(con, proxy_li, proxy_ty, url=None):
13641364
if len(argv) == 8:
13651365
logger.setLevel("DEBUG")
13661366
proxy_ty = int(argfive)
1367-
proxy_li = Path(__dir__ / "files/proxies/" / argv[6].strip())
1367+
proxy_li = Path(__dir__ / "files/proxies" / argv[6].strip())
13681368
proxies = handleProxyList(con, proxy_li, proxy_ty)
13691369
if method not in {"MINECRAFT", "TCP"}:
13701370
exit("this method cannot use for layer4 proxy")

0 commit comments

Comments
 (0)