Skip to content

Commit a0a873a

Browse files
authored
Telegram fixed
1 parent 48dab9f commit a0a873a

File tree

1 file changed

+4
-4
lines changed
  • .github/workflows

1 file changed

+4
-4
lines changed

.github/workflows/CIDR

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414

1515
- name: Fetch Telegram CIDR List
1616
run: |
17-
curl -s "https://core.telegram.org/resources/cidr.txt" | sed "s/[[:space:]]//g" > Telegram-CIDR.txt
18-
# Additional processing steps (e.g., converting to .rsc format) go here
19-
17+
curl -s "https://core.telegram.org/resources/cidr.txt" | sed "s/[[:space:]]//g" > Telegram-CIDR.rsc
18+
# Additional processing steps (Converting to .rsc format)
19+
sed -nEi 's/(([0-9]+\.){3}[0-9]+) */add list=Telegram address=\1/p' Telegram-CIDR.rsc
20+
sed -i '1 i\\/ip firewall address-list' Telegram-CIDR.rsc
2021
# Add more steps to process the data and commit changes
21-
# ...
2222

2323
- name: Commit and Push
2424
run: |

0 commit comments

Comments
 (0)