Skip to content

Commit ef85311

Browse files
author
rezra3
committedNov 28, 2018
not to add user_dns_domain if already exists
1 parent 7611df5 commit ef85311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/common/codeine/jsons/peer_status/PeerStatusJsonV2.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public String ip_port() {
9797
}
9898

9999
public String address_port() {
100-
if (!StringUtils.isEmpty(user_dns_domain)) {
100+
if (!StringUtils.isEmpty(user_dns_domain) && !canonical_host.contains(user_dns_domain)) {
101101
return canonical_host + "." + user_dns_domain + ":" + port;
102102
}
103103
return canonical_host_port();

0 commit comments

Comments
 (0)