mirror of
https://github.com/sogou/workflow.git
synced 2026-10-20 14:21:21 +08:00
Merge pull request #778 from holmes1412/windows
remove comparison in WFServiceGorvernance::copy_host_port() (Windows)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user