Skip to content

Commit

Permalink
fix: remove incompatible ip printing in linux (#10296)
Browse files Browse the repository at this point in the history
Signed-off-by: Maxi Tartaglia <maxi@swirldslabs.com>
  • Loading branch information
mxtartaglia-sl authored Dec 6, 2023
1 parent 337d7fd commit 719f074
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 719f074

Please sign in to comment.