Repository navigation
Commit 1b612b1
committed
feat(ipv4): require numeric prefix in strict CIDR mode
HU-04: Enforce strict CIDR notation in strict mode by requiring the
prefix to be a numeric value (0-32) instead of accepting dotted netmask
notation like 255.255.255.0.
When strict=True with CIDR enabled:
- Accepts: 192.168.1.0/24
- Rejects: 192.168.1.0/255.255.255.0
This change maintains backward compatibility:
- Non-strict mode continues to accept both formats
- All existing tests continue to pass
- Only adds stricter validation when explicitly requested1 parent a77ed6f commit 1b612b1
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| |||
0 commit comments