diff --git a/asset/chinalist/build/build.py b/asset/chinalist/build/build.py index c225f79..f9d52cd 100755 --- a/asset/chinalist/build/build.py +++ b/asset/chinalist/build/build.py @@ -27,9 +27,9 @@ for ipStr in ipList: pass ipList = [] for ipAddr in ipv4List: - ipList.append(str(ipAddr)) + ipList.append(str(ipAddr) if str(ipAddr).find('/') != -1 else str(ipAddr) + '/32') for ipAddr in ipv6List: - ipList.append(str(ipAddr)) + ipList.append(str(ipAddr) if str(ipAddr).find('/') != -1 else str(ipAddr) + '/128') with open (workDir + '/../china-ip.txt', 'w') as fileObj: fileObj.write('\n'.join(ipList) + '\n') os.popen('gzip -cf9 ' + workDir + '/../china-ip.txt > ' + workDir + '/../china-ip.txt.gz')