Merge pull request #778 from holmes1412/windows

remove comparison in WFServiceGorvernance::copy_host_port() (Windows)
This commit is contained in:
xiehan
2022-03-03 15:41:09 +08:00
committed by GitHub
+2 -2
View File
@@ -67,13 +67,13 @@ public:
static void copy_host_port(ParsedURI& uri, const EndpointAddress *addr)
{
if (!addr->host.empty() && addr->host != uri.host)
if (!addr->host.empty())
{
free(uri.host);
uri.host = strdup(addr->host.c_str());
}
if (!addr->port.empty() && addr->port != uri.port)
if (!addr->port.empty())
{
free(uri.port);
uri.port = strdup(addr->port.c_str());