x/net: fix tcp tests for openbsd and add missing `fmt` import

On OpenBSD, connecting to a newly-allocated port on an unspecified IPv4
host address causes EINVAL. This was found by @mikdusan when running TCP
tests on OpenBSD.

This commit fixes TCP tests on OpenBSD by having all tests that allocate
a new host-port pair to have the host IPv4/IPv6 address point to the
host's loopback adapter (on localhost).
c75ae8b66dlithdew committed on 5/5/2021, 7:09:08 AMparent785a6c1
3 files changedLine totals unavailable