Server: macOS big sur 11.2.2
Client: macOS big sur 11.2.2
Server: 1.13.1 and prior
Client: 1.13.1, prior, and also master 2009409c146ca2049235686c70ff99220e4f0682
$ ping abeja.local
$ ping6 abeja.local
abeja.local, fails with 'connection refused' on the IPv6 addresstcp4 0 0 *.24800 *.* LISTENExpected: should connect
Actual: can't connect
thanks to PR #6178 synergy now attempts to connect on ipv6 addresses. However, on mac, it still only listens on ipv4.
Quick workaround
index 92274343..e20fd31c 100644
--- a/src/lib/arch/unix/ArchNetworkBSD.cpp
+++ b/src/lib/arch/unix/ArchNetworkBSD.cpp
@@ -682,7 +682,7 @@ ArchNetworkBSD::nameToAddr(const std::string& name)
int ret;
memset(&hints, 0, sizeof(hints));
- hints.ai_family = AF_UNSPEC;
+ hints.ai_family = AF_INET; // To require IPv4
// done with static buffer
ARCH->lockMutex(m_mutex);
I suggest that if connection fails with ANY and the address family is v6, the client should RETRY by resolving using AF_INET.
SYNERGY-885
Most helpful comment
SYNERGY-885