net: report an error if unable to bind on the Tor listening addr:port

This commit is contained in:
Vasil Dimov committed 2024-07-02 14:17:51 +02:00
1 parent 9a7e5f4d68
commit af552534ab
1 file changed
+1 -1
+1 -1
View File
@@ -3206,7 +3206,7 @@ bool CConnman::InitBinds(const Options& options)
fBound |= Bind(addrBind.m_service, BF_REPORT_ERROR, addrBind.m_flags);
}
for (const auto& addr_bind : options.onion_binds) {
fBound |= Bind(addr_bind, BF_DONT_ADVERTISE, NetPermissionFlags::None);
fBound |= Bind(addr_bind, BF_REPORT_ERROR | BF_DONT_ADVERTISE, NetPermissionFlags::None);
}
if (options.bind_on_any) {
struct in_addr inaddr_any;