MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / validate

Method validate

gateway/src/config.rs:29–31  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

27
28impl WgConfig {
29 fn validate(&self) -> Result<()> {
30 validate(self.ip, &self.reserved_net, self.client_ip_range)
31 }
32}
33
34fn validate(ip: Ipv4Net, reserved_net: &[Ipv4Net], client_ip_range: Ipv4Net) -> Result<()> {

Callers 1

setup_wireguardFunction · 0.45

Calls 1

validateFunction · 0.85

Tested by

no test coverage detected