]> Kevux Git Server - fll/commit
Regression: IPv6 detection is failing after isdigit() and similar changes.
authorKevin Day <Kevin@kevux.org>
Tue, 6 Aug 2024 01:48:57 +0000 (20:48 -0500)
committerKevin Day <Kevin@kevux.org>
Tue, 6 Aug 2024 01:59:46 +0000 (20:59 -0500)
commitaa77562f93057d3488333cde46e45bb5d3992f80
tree386253bc3d1be4bf65393364f512cef1db90c95b
parentc0c02e81fcebcb7f213ac0746e443e670176cca4
Regression: IPv6 detection is failing after isdigit() and similar changes.

The commit 50788517d37ece42f32f6906078d2d59330ec3c9 missed a not operator for the IPv6 address.
The unit tests revealed the problem.

This adds the missing exclamation character '!'.

I also overlooked some cases where I could perform the same optimization used for the referenced commit in some places.
Also use the literal ASCII characters rather than the strings.
The ASCII codes are required and expected and substitution of the characters for the algorithm do not make sense here.
These are characters rather than strings.
level_0/f_network/c/network.c