Skip to content

Commit a3ceb44

Browse files
authored
Revert "Fix TCP reuse_addr (project-chip#42789)" (project-chip#42847)
This reverts commit eb445a2.
1 parent 93d430b commit a3ceb44

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/transport/raw/TCP.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ CHIP_ERROR TCPBase::Init(TcpListenParameters & params)
9898

9999
if (params.IsServerListenEnabled())
100100
{
101-
err = mListenSocket->Bind(params.GetAddressType(), Inet::IPAddress::Any, params.GetListenPort(), /* reuseAddr = */ true);
101+
err = mListenSocket->Bind(params.GetAddressType(), Inet::IPAddress::Any, params.GetListenPort(),
102+
params.GetInterfaceId().IsPresent());
102103
SuccessOrExit(err);
103104

104105
mListenSocket->mAppState = reinterpret_cast<void *>(this);

0 commit comments

Comments
 (0)