Skip to content

Commit

Permalink
Update src/app/cli/interpreter.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Kangping <[email protected]>
  • Loading branch information
ZhangLe2016 and wgtdkp authored Apr 15, 2024
1 parent 8e1b077 commit bc053b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/cli/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ Interpreter::Value Interpreter::ProcessBr(const Expression &aExpr)

if (!netIf.empty() && setsockopt(mdnsSocket, SOL_SOCKET, SO_BINDTODEVICE, netIf.c_str(), netIf.size()) < 0)
{
ExitNow(value = ERROR_SOCKET_BIND_ERROR("failed to bind network interface {}: {}", netIf, strerror(errno)));
ExitNow(value = ERROR_INVALID_ARGS("failed to bind network interface {}: {}", netIf, strerror(errno)));
}

fdgMdnsSocket.mFD = mdnsSocket;
Expand Down

0 comments on commit bc053b4

Please sign in to comment.