Skip to content

ssdp discovery fails with IPV6 addrs #2

@skhavari

Description

@skhavari

ssdpUnicastDiscoverImpl & ssdpMulticastDiscoverImpl depend on IPV4 address but don't ensure IPV4 addresses are used.

The code currently grabs the first entry returned by net.Interface.Addrs() and on my machine the following is returned:

Addr[0] = fe80::72cd:60ff:fef3:75ad/64
Addr[1] = 192.168.1.68/24

Since the first entry is an IPV6 entry the code issues a panic and fails to complete discovery.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions