Skip to content

Fix the core-pva NetworkTest #3902

Description

@shroffk

On Windows, the loopback interface display name may be reported as "Software Loopback Interface 1", which AddressInfo fails to parse even though the interface is valid.
Since the Network.parseAddress(...) is using the NetworkInterface.getByName(...) this does not always ( at least not on windows ) work with the display name.

For now we can just catch the exception and use lo.getName().

            try {
                addr = Network.parseAddress("[ff02::42:1]:5099@" + lo.getDisplayName(), PVASettings.EPICS_PVA_BROADCAST_PORT);
            } catch (Exception ex) {
                addr = Network.parseAddress("[ff02::42:1]:5099@" + lo.getName(), PVASettings.EPICS_PVA_BROADCAST_PORT);
            }

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions