Check that localhost gets resolved to the 127.0.0.1 or ::1 address.
No fstat in args-localhost-only4.pl.
Check for maximum host and port length.
Maximum port length is 32.
Also check the maximum loghost len.