Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net/url: Parse interprets octal literals in IP addresses as decimal ones #30999
What version of Go are you using (
Some implementations consider octets with leading zeros to be decimal other implementations consider them to be octal. That being said, it's best to avoid leading zeros in your IP octets. Changing the default parsing behavior may break existing code since people may have already accepted that Golang simply ignore leading zero in octals when dealing with IP address.