Skip to content

Commit af55253

Browse files
committed
net: report an error if unable to bind on the Tor listening addr:port
1 parent 9a7e5f4 commit af55253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3206,7 +3206,7 @@ bool CConnman::InitBinds(const Options& options)
32063206
fBound |= Bind(addrBind.m_service, BF_REPORT_ERROR, addrBind.m_flags);
32073207
}
32083208
for (const auto& addr_bind : options.onion_binds) {
3209-
fBound |= Bind(addr_bind, BF_DONT_ADVERTISE, NetPermissionFlags::None);
3209+
fBound |= Bind(addr_bind, BF_REPORT_ERROR | BF_DONT_ADVERTISE, NetPermissionFlags::None);
32103210
}
32113211
if (options.bind_on_any) {
32123212
struct in_addr inaddr_any;

0 commit comments

Comments
 (0)