Skip to content

Discovery only operates on the first network interface in the list???  #13

@tony-gutierrez

Description

@tony-gutierrez
async _sendQueryPacket(buf) {
        for (const netif_address of this._netif_address_list) {
            for (let i = 0; i < 3; i++) {
                this._udp.setMulticastInterface(netif_address);
                await this._wait(100);
                await this._udpSend(buf, this._UDP_PORT, this._MULTICAST_ADDR);
                if (this._is_discovering === true) {
                    break;
                }
                await this._wait(100);
            }

        // THIS LINE ENDS QUERYING AFTER THE FIRST INTERFACE????    
        if (this._is_discovering === true) {
                break;
            }
        }
    }

I am not sure why this behavior is in there? It seems like it would only ever query interface 1.

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