From fa160a7a5e03b69b98577da2a280088088a2559c Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Tue, 6 Oct 2026 21:08:04 +0800 Subject: [PATCH] Delete .github/diy/patches/ssrserver-python.patch --- .github/diy/patches/ssrserver-python.patch | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 .github/diy/patches/ssrserver-python.patch diff --git a/.github/diy/patches/ssrserver-python.patch b/.github/diy/patches/ssrserver-python.patch deleted file mode 100644 index c9d38b45a..000000000 --- a/.github/diy/patches/ssrserver-python.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- a/luci-app-ssrserver-python/root/usr/share/ssr/utils/autoban.py -+++ b/luci-app-ssrserver-python/root/usr/share/ssr/utils/autoban.py -@@ -25,9 +25,12 @@ - with_statement - - import os -+import re - import sys - import argparse - -+_VALID_IP_RE = re.compile(r'^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$') -+ - if __name__ == '__main__': - parser = argparse.ArgumentParser(description='See README') - parser.add_argument('-c', '--count', default=3, type=int, -@@ -45,7 +48,7 @@ - sys.stdout.flush() - else: - ips[ip] += 1 -- if ip not in banned and ips[ip] >= config.count: -+ if ip not in banned and ips[ip] >= config.count and _VALID_IP_RE.match(ip): - banned.add(ip) - cmd = 'iptables -A INPUT -s %s -j DROP' % ip - print(cmd, file=sys.stderr)