mirror of
https://github.com/lord-alfred/ipranges.git
synced 2026-11-15 05:48:36 +00:00
Fix ip sorting
This commit is contained in:
1 parent
3954b45881
commit
e34eb665f7
13 files changed
+46
-46
No files matched your search
@@ -7,5 +7,5 @@ set -x
|
||||
curl -s https://core.telegram.org/resources/cidr.txt > /tmp/telegram.txt
|
||||
|
||||
# seperate IPv4 and IPv6, sort an uniq
|
||||
grep -v ':' /tmp/telegram.txt | sort -h | uniq > telegram/ipv4.txt
|
||||
grep ':' /tmp/telegram.txt | sort -h | uniq > telegram/ipv6.txt
|
||||
grep -v ':' /tmp/telegram.txt | sort -V | uniq > telegram/ipv4.txt
|
||||
grep ':' /tmp/telegram.txt | sort -V | uniq > telegram/ipv6.txt
|
||||
Reference in new issue
Block a user