mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 06:31:50 +08:00
Adapted and applied patch by Brent Priddy for re-resolving the server
hostname on each connection. This allows the client to startup without being able to resolve the server's hostname. It also lets it handle changes in the server's address, a typical scenario when the client is a laptop moving between networks.
This commit is contained in:
@@ -780,6 +780,7 @@ CConfig::readSectionOptions(std::istream& s)
|
||||
if (name == "address") {
|
||||
try {
|
||||
m_synergyAddress = CNetworkAddress(value, kDefaultPort);
|
||||
m_synergyAddress.resolve();
|
||||
}
|
||||
catch (XSocketAddress& e) {
|
||||
throw XConfigRead(CString("invalid address argument: ") +
|
||||
|
||||
Reference in New Issue
Block a user