We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef471ac commit 0f1a22bCopy full SHA for 0f1a22b
core/core-service-discovery/src/main/java/ai/wanaku/core/service/discovery/util/DiscoveryUtil.java
@@ -3,6 +3,8 @@
3
import java.net.InetAddress;
4
import java.net.UnknownHostException;
5
6
+import ai.wanaku.api.exceptions.WanakuException;
7
+
8
/**
9
* Utilities to help with target discovery
10
*/
@@ -15,9 +17,8 @@ private DiscoveryUtil() {}
15
17
* @return the address as a string
16
18
19
public static String resolveRegistrationAddress() {
- InetAddress address = null;
20
try {
- address = InetAddress.getLocalHost();
21
+ InetAddress address = InetAddress.getLocalHost();
22
return address.getHostAddress();
23
} catch (UnknownHostException e) {
24
throw new RuntimeException(e);
0 commit comments