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

This commit is contained in:
Vasil Dimov 2021-08-02 19:05:35 +02:00
parent 9a7e5f4d68
commit af552534ab
No known key found for this signature in database
GPG key ID: 54DF06F64B55CBBF

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;