mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Better admin IP management in .cfg (RIPD-820):
* Deprecate rpc_admin_allow section from configuration file
* New port-specific setting 'admin':
* Comma-separated list of IP addresses that are allowed administrative
privileges (subject to username & password authentication if configured)
* 127.0.0.1 is no longer a default admin IP.
* 0.0.0.0 may be specified to indicate "any IP" but cannot be combined
with other IP addresses.
This commit is contained in:
committed by
Vinnie Falco
parent
4a47ba9b35
commit
233127393f
@@ -139,6 +139,14 @@ public:
|
||||
return m_v6;
|
||||
}
|
||||
|
||||
/** Returns `true` if this address represents 0.0.0.0 */
|
||||
bool
|
||||
is_any () const
|
||||
{
|
||||
return is_v4 () ? m_v4 == IP::AddressV4::any ()
|
||||
: false; // m_v6 == IP::AddressV6::any();
|
||||
}
|
||||
|
||||
template <class Hasher>
|
||||
friend
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user