Repository: quarkusio/quarkus
Issue: Stork custom serviceDiscovery default Host is not working anymore

### Describe the bug

Quarkus version: Upstream
Extension: `stork-core` and `stork-configuration-generator`

If no `quarkus.stork.<SERVICE_NAME>.service-discovery.host` is provided then by default `localhost/127.0.0.1:80` is used as a service discovery host, and then an exception is thrown

```
2022-09-12 13:55:41,835 ERROR [io.qua.mut.run.MutinyInfrastructure] (vert.x-eventloop-thread-1) Mutiny had to drop the following exception: javax.ws.rs.WebApplicationException: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:80
	at io.quarkus.ts.stork.custom.PingResource.lambda$pong$0(PingResource.java:22)
	at io.smallrye.context.impl.wrappers.SlowContextualFunction.apply(SlowContextualFunction.java:21)
	at io.smallrye.mutiny.operators.uni.UniOnFailureTransform$UniOnFailureTransformProcessor.onFailure(UniOnFailureTransform.java:54)
	at io.smallrye.mutiny.operators.uni.builders.UniCreateFromCompletionStage$CompletionStageUniSubscription.forwardResult(UniCreateFromCompletionStage.java:58)
	at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
	at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)

```

In previous upstream version, the default host was `localhost`. 

Work around: Define on your application.properties the required Host with the expected format



### Expected behavior

Default stork service discovery host should be `localhost` 

### Actual behavior

Default stork service is set to `localhost/127.0.0.1:80`

### How to Reproduce?

`git clone git@github.com:quarkus-qe/quarkus-test-suite.git`

Go to the following module `https://github.com/quarkus-qe/quarkus-test-suite/tree/main/service-discovery/stork-custom` and set this application.properties

```
#quarkus.stork.pong.load-balancer.type=simplelb
quarkus.stork.pong.service-discovery.type=simple
# this properties make sense if you have a global service discovery state as a DB, for this scenario we are going to use an in-memory Map
#quarkus.stork.pong.service-discovery.host=localhost
quarkus.stork.pong.service-discovery.port=8080
#quarkus.stork.pong.service-discovery.pongServiceHost=localhost
quarkus.stork.pong.service-discovery.pongServicePort=8080

#quarkus.stork.pong-replica.load-balancer.type=simplelb
quarkus.stork.pong-replica.service-discovery.type=simple
# this properties make sense if you have a global service discovery state as a DB, for this scenario we are going to use an in-memory Map
#quarkus.stork.pong-replica.service-discovery.host=localhost
quarkus.stork.pong-replica.service-discovery.port=8080
#quarkus.stork.pong-replica.service-discovery.pongReplicaServiceHost=localhost
quarkus.stork.pong-replica.service-discovery.pongReplicaServicePort=8080
```

Then start the app in dev mode: `mvn quarkus:dev`

and finally run: `curl -v Http://localhost:8080/ping/pong`

**Note**: service discovery `host`properties are commented



Changed files:
independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/StorkClientRequestFilter.java

diff --git a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/StorkClientRequestFilter.java b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/StorkClientRequestFilter.java
index 43c8c218eb4..eeb59d0e0ab 100644
--- a/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/StorkClientRequestFilter.java
+++ b/independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/StorkClientRequestFilter.java
@@ -34,7 +34,8 @@ public void filter(ResteasyReactiveClientRequestContext requestContext) {
             try {
                 serviceInstance = Stork.getInstance()
                         .getService(serviceName)
-                        .selectInstanceAndRecordStart(measureTime);
+                        .selectInstanceAndRecordStart(measureTime)
+                        .log();
             } catch (Throwable e) {
                 log.error("Error selecting service instance for serviceName: " + serviceName, e);
                 requestContext.resume(e);
@@ -46,8 +47,18 @@ public void filter(ResteasyReactiveClientRequestContext requestContext) {
                         boolean isHttps = instance.isSecure() || "storks".equals(uri.getScheme());
                         String scheme = isHttps ? "https" : "http";
                         try {
+                            // In the case the service instance does not set the host and/or port
+                            String host = instance.getHost() == null ? "localhost" : instance.getHost();
+                            int port = instance.getPort();
+                            if (instance.getPort() == 0) {
+                                if (isHttps) {
+                                    port = 433;
+                                } else {
+                                    port = 80;
+                                }
+                            }
                             URI newUri = new URI(scheme,
-                                    uri.getUserInfo(), instance.getHost(), instance.getPort(),
+                                    uri.getUserInfo(), host, port,
                                     uri.getPath(), uri.getQuery(), uri.getFragment());
                             requestContext.setUri(newUri);
                             if (measureTime && instance.gatherStatistics()) {