From 719f07444fc6fba2dfe260f249730a86b5618160 Mon Sep 17 00:00:00 2001 From: Maxi Tartaglia <152629744+mxtartaglia-sl@users.noreply.github.com> Date: Wed, 6 Dec 2023 07:38:01 -0300 Subject: [PATCH] fix: remove incompatible ip printing in linux (#10296) Signed-off-by: Maxi Tartaglia --- .../com/swirlds/demo/hashgraph/HashgraphDemoMain.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/platform-sdk/platform-apps/demos/HashgraphDemo/src/main/java/com/swirlds/demo/hashgraph/HashgraphDemoMain.java b/platform-sdk/platform-apps/demos/HashgraphDemo/src/main/java/com/swirlds/demo/hashgraph/HashgraphDemoMain.java index d8fd3b8932e6..8395666460b0 100644 --- a/platform-sdk/platform-apps/demos/HashgraphDemo/src/main/java/com/swirlds/demo/hashgraph/HashgraphDemoMain.java +++ b/platform-sdk/platform-apps/demos/HashgraphDemo/src/main/java/com/swirlds/demo/hashgraph/HashgraphDemoMain.java @@ -42,8 +42,6 @@ import com.swirlds.platform.ParameterProvider; import com.swirlds.platform.gui.GuiPlatformAccessor; import com.swirlds.platform.gui.SwirldsGui; -import com.swirlds.platform.network.ExternalIpAddress; -import com.swirlds.platform.network.IpAddressStatus; import com.swirlds.platform.network.Network; import com.swirlds.platform.state.address.AddressBookNetworkUtils; import java.awt.Checkbox; @@ -249,14 +247,6 @@ public void paintComponent(final Graphics g) { final Address address = platform.getAddressBook().getAddress(platform.getSelfId()); print(g, "Internal: " + Network.getInternalIPAddress() + " : " + address.getPortInternal(), 0); - final ExternalIpAddress ipAddress = Network.getExternalIpAddress(); - String externalIpAddress = ipAddress.toString(); - if (ipAddress.getStatus() == IpAddressStatus.IP_FOUND) { - externalIpAddress += " : " + address.getPortExternal(); - } - - print(g, "External: " + externalIpAddress, 0); - final int height1 = (row - 1) * textLineHeight; // text area at the top final int height2 = getHeight() - height1; // the main display, below the text g.setColor(Color.BLACK);