Fix input clients connecting to server
Fix a bug where some input clients can't connect to the input server. This fixes #117 (closed).
FreeBSD bugzilla reference: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248549
This is what the submitter of the FreeBSD bug suggested as a fix. I have not verified if it is correct.