public String getTarget() {
        InstanceInfo instanceInfo = server.getInstanceInfo();
        if (server.getPort() == instanceInfo.getSecurePort()) {
            return instanceInfo.getSecureVipAddress();
        } else {
            return instanceInfo.getVIPAddress();
        }
    }
This convenience method exists for usage in tests. For production usage, please use the constructor linked:

@see DiscoveryResult#DiscoveryResult(DiscoveryEnabledServer, LoadBalancerStats)
zuul-discovery/src/main/java/com/netflix/zuul/discovery/DiscoveryResult.java