shawn1m / overture

A customized DNS relay server
MIT License
1.79k stars 284 forks source link

bug that reading the ip list text file when you configure the IPNeworkFile #170

Closed JMVoid closed 5 years ago

JMVoid commented 5 years ago

fix the read ip list txt bug. the bug error message as following:time="2019-07-28 01:39:07" level=error msg="Error parsing IP network CIDR 223.240.0.0/13\n: invalid CIDR address: 223.240.0.0/13\n". the bug come from the ReadString in bufio.NewRead will not trim the delimiter, so the "\n" still keep in line and make the CIDR parse throw error.

shawn1m commented 5 years ago

Merged. Thanks!