Skip to content

Commit

Permalink
chip-tool: use correct interface when specified (#16833)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebin14 authored and pull[bot] committed Apr 5, 2022
1 parent cc7239a commit 2352428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/chip-tool/commands/pairing/PairingCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ CHIP_ERROR PairingCommand::RunInternal(NodeId remoteId)
err = PairWithMdns(remoteId);
break;
case PairingMode::SoftAP:
err = Pair(remoteId, PeerAddress::UDP(mRemoteAddr.address, mRemotePort));
err = Pair(remoteId, PeerAddress::UDP(mRemoteAddr.address, mRemotePort, mRemoteAddr.interfaceId));
break;
case PairingMode::Ethernet:
err = Pair(remoteId, PeerAddress::UDP(mRemoteAddr.address, mRemotePort));
err = Pair(remoteId, PeerAddress::UDP(mRemoteAddr.address, mRemotePort, mRemoteAddr.interfaceId));
break;
}

Expand Down

0 comments on commit 2352428

Please sign in to comment.