Skip to content

Commit 7adf060

Browse files
committed
if longlink profile ip is one of newdns/dns ips, do not check
1 parent 8ba6d11 commit 7adf060

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mars/stn/src/netsource_timercheck.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ bool NetSourceTimerCheck::__TryConnnect(const std::string& _host) {
181181
if (ip_vec.empty()) dns_util_.GetDNS().GetHostByName(_host, ip_vec);
182182
if (ip_vec.empty()) return false;
183183

184+
for (std::vector<std::string>::iterator iter = ip_vec.begin(); iter != ip_vec.end(); ++iter) {
185+
if (*iter == longlink_.Profile().ip) {
186+
return false;
187+
}
188+
}
189+
184190
std::vector<uint16_t> port_vec;
185191
NetSource::GetLonglinkPorts(port_vec);
186192

0 commit comments

Comments
 (0)