@@ -11,6 +11,7 @@ import com.wireguard.android.Application;
|
||||
import com.wireguard.android.R;
|
||||
|
||||
import java.net.Inet4Address;
|
||||
import java.net.Inet6Address;
|
||||
import java.net.InetAddress;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
@@ -59,7 +60,7 @@ public class InetEndpoint {
|
||||
if (resolvedHost == null)
|
||||
resolvedHost = candidates[0];
|
||||
}
|
||||
return String.format(resolvedHost instanceof Inet4Address ?
|
||||
return String.format(resolvedHost instanceof Inet6Address ?
|
||||
"[%s]:%d" : "%s:%d", resolvedHost.getHostAddress(), port);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user