api2/node/dns.rs: implement concurrent update protection

This commit is contained in:
Dietmar Maurer committed 2019-01-25 11:38:59 +01:00
1 parent de6b0721fa
commit af2fddea4f
4 files changed
+45 -3

No files matched your search

+2
View File
@@ -34,4 +34,6 @@ macro_rules! IPRE { () => (concat!(r"(?:", IPV4RE!(), "|", IPV6RE!(), ")")) }
lazy_static! {
pub static ref IP_REGEX: Regex = Regex::new(IPRE!()).unwrap();
pub static ref SHA256_HEX_REGEX: Regex = Regex::new("^[a-f0-9]{64}$").unwrap();
}