From 9755a56967ae2faebc4271898ce079009771e18b Mon Sep 17 00:00:00 2001
From: itdoginfo <koalav42@gmail.com>
Date: Thu, 13 Feb 2025 11:53:15 +0300
Subject: [PATCH] Fix telegram name for srs

---
 .github/workflows/create-lists.yml | 2 +-
 convert.py                         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/create-lists.yml b/.github/workflows/create-lists.yml
index e5cf074..82abefa 100644
--- a/.github/workflows/create-lists.yml
+++ b/.github/workflows/create-lists.yml
@@ -31,7 +31,7 @@ jobs:
         -v ${{ github.workspace }}/Services:/app/Services \
         -v ${{ github.workspace }}/SRS:/app/SRS \
         -v ${{ github.workspace }}/DAT:/app/DAT \
-        itdoginfo/compilesrs:0.1.10
+        itdoginfo/compilesrs:0.1.11
 
     - name: Check Russia/inside-dnsmasq-ipset
       uses: itdoginfo/dnsmasq-action@0.1
diff --git a/convert.py b/convert.py
index b8aa3ea..b995a96 100755
--- a/convert.py
+++ b/convert.py
@@ -282,14 +282,14 @@ def generate_srs_subnets(input_file, output_json_directory='JSON', compiled_outp
     }
 
     filename = os.path.splitext(os.path.basename(input_file))[0]
-    output_file_path = os.path.join(output_json_directory, f"{filename}_subnets.json")
+    output_file_path = os.path.join(output_json_directory, f"{filename}.json")
 
     with open(output_file_path, 'w', encoding='utf-8') as output_file:
         json.dump(data, output_file, indent=4)
 
     print(f"JSON file generated: {output_file_path}")
 
-    srs_file_path = os.path.join(compiled_output_directory, f"{filename}_subnets.srs")
+    srs_file_path = os.path.join(compiled_output_directory, f"{filename}.srs")
     try:
         subprocess.run(
             ["sing-box", "rule-set", "compile", output_file_path, "-o", srs_file_path], check=True