Closes https://linear.app/codercom/issue/CODAGT-1203
`TestConnectInline_RedactsSensitiveValues` fails every time on Windows
in the [nightly
gauntlet](https://github.com/coder/coder/actions/runs/36376854646/job/108784351863).
It asserted on `connection refused`, but Windows words a refused dial
differently. PR CI only runs the `cli` and `agent` packages on Windows,
so we didn't catch it there.
To fix, the test now uses a private IP that the dial guard rejects
before dialling, so the error is the same on every OS and there's no
closed port for another test to grab.
Whilst here, I made production build the persisted connect error through
the same function the truncation test uses, rather than its own copy.