Specify maximum IP address length
Co-authored-by: Cheng XU <3105373+xu-cheng@users.noreply.github.com>
This commit is contained in:
parent
ace518de9a
commit
403d269f20
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
})?;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue