Skip to content

net: InterfaceAddrs, Interface.{Addrs,MulticastAddrs} can return addresses on administratively or operational down interface #12812

@akevinbailey

Description

@akevinbailey

I found another issue in interface_windows.go: The interfaceAddrTable returns Interfaces that are not active. Need to implement the follow code after for ; paddr != nil; paddr = paddr.Next { ... (line 156):

if paddr.OperStatus == windows.IfOperStatusUp {
...
}

This will exclude inactive interfaces.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions