Skip to content

fix NetworkInterface properties on Windows#102900

Merged
wfurt merged 1 commit intodotnet:mainfrom
wfurt:info
May 31, 2024
Merged

fix NetworkInterface properties on Windows#102900
wfurt merged 1 commit intodotnet:mainfrom
wfurt:info

Conversation

@wfurt
Copy link
Member

@wfurt wfurt commented May 30, 2024

fixes #101710
It is regression from #100824. It did replaced original flags with IncludeAllInterfaces. But the interaction to include all interfaces does not guarantied that all of them would have all properties populated.
Strangely, on my dev box it would still show gateway even with the change but some Windows instances would not.
So this change brings all flags together and OR them with the new one to get superset.

Tested on system @Junjun-zhao kindly provided.

@wfurt wfurt added this to the 9.0.0 milestone May 30, 2024
@wfurt wfurt requested a review from a team May 30, 2024 22:18
@wfurt wfurt self-assigned this May 30, 2024
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@rzikm rzikm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wfurt wfurt merged commit ead1d5c into dotnet:main May 31, 2024
@wfurt wfurt deleted the info branch May 31, 2024 16:53
@github-actions github-actions bot locked and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dotnet-sdk-9.0.100-preview.4.24253.11] IPInterfaceProperties.GatewayAddresses. FirstOrDefault() returns Null

2 participants