From 70ad859a1401131c6fd981bd12a8c6d0fb9f51da Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 7 Mar 2023 20:18:07 +0100 Subject: WIP add ConfigDetail and PeerDetail --- tunnel/src/main/java/com/wireguard/config/InetEndpoint.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tunnel/src/main/java/com/wireguard/config') diff --git a/tunnel/src/main/java/com/wireguard/config/InetEndpoint.java b/tunnel/src/main/java/com/wireguard/config/InetEndpoint.java index 9d087cd6..86f5f9a8 100644 --- a/tunnel/src/main/java/com/wireguard/config/InetEndpoint.java +++ b/tunnel/src/main/java/com/wireguard/config/InetEndpoint.java @@ -81,6 +81,10 @@ public final class InetEndpoint { return port; } + public Optional getResolved() { + return Optional.ofNullable(resolved); + } + /** * Generate an {@code InetEndpoint} instance with the same port and the host resolved using DNS * to a numeric address. If the host is already numeric, the existing instance may be returned. -- cgit v1.2.3