Skip to content

Commit

Permalink
update china.awk
Browse files Browse the repository at this point in the history
  • Loading branch information
Zesen Qian committed Jan 13, 2017
1 parent f1a40dc commit 567ff36
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions china.awk
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# This script expects to read from
# ftp://ftp.ripe.net/pub/stats/apnic/delegated-apnic-latest



BEGIN {
FS="|";
}
Expand All @@ -16,12 +14,12 @@ $2 == "CN" && $3 == "ipv4" {
print $4 "/" prefix
}
END {
# Please fill you VPS's IPv4 here
# and uncomment the line bellow

# print 23.89.123.42
print "0.0.0.0/8"
print "10.0.0.0/8"
print "127.0.0.0/8"
print "169.254.0.0/16"
print "172.16.0.0/12"
print "192.168.0.0/16"
print "224.0.0.0/4"
print "240.0.0.0/4"
}

0 comments on commit 567ff36

Please sign in to comment.