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 Jan 18, 2024
1 parent 7cc8a72 commit 1210730
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 1210730

Please sign in to comment.