Specify maximum IP address length

Co-authored-by: Cheng XU <3105373+xu-cheng@users.noreply.github.com>
This commit is contained in:
Smittyvb
2021-08-10 16:43:17 -04:00
committed by GitHub
parent ace518de9a
commit 403d269f20

View File

@@ -148,7 +148,7 @@ impl<'a> Parser<'a> {
*slot = p.read_separator('.', i, |p| {
// Disallow octal number in IP string.
// https://tools.ietf.org/html/rfc6943#section-3.1.1
p.read_number(10, None, false)
p.read_number(10, Some(3), false)
})?;
}