Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions apgas/src/apgas/impl/GlobalRuntimeImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,15 @@ public GlobalRuntimeImpl(String[] args) {
if (host == null) {
host = localhost;
}
{
// removing port part from IPv4 addresses
int lastIndex;
if ((lastIndex = host.lastIndexOf(':')) > 0
&& lastIndex == host.indexOf(':')) {
host=host.substring(0, lastIndex);
}
}

try {
final Enumeration<NetworkInterface> networkInterfaces = NetworkInterface
.getNetworkInterfaces();
Expand Down