Commit a309dcac authored by Sergei Zubov's avatar Sergei Zubov

Modify allowed IP for RPC server

0.0.0.0 or ::1 allows everyone to connect
parent 2486507a
......@@ -42,6 +42,10 @@ namespace Stratis.Bitcoin.Features.RPC
if (this.AllowIp.Count == 0)
return true;
if (this.AllowIp.Any(i => i.Equals(IPAddress.Any) || i.Equals(IPAddress.IPv6Any)))
return true;
return this.AllowIp.Any(i => i.AddressFamily == ip.AddressFamily && i.Equals(ip));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment