GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 3f9e85ea authored by K900's avatar K900
Browse files

wgctrl-rs: work on stable

parent 730439c6
Pipeline #28682692 passed with stage
in 3 minutes and 48 seconds
......@@ -485,8 +485,8 @@ impl PeerConfigBuilder {
/// This is a convenience method for cases when you want to connect to a server
/// that all traffic should be routed through.
pub fn allow_all_ips(self) -> Self {
self.add_allowed_ip(IpAddr::V4(Ipv4Addr::UNSPECIFIED), 0)
.add_allowed_ip(IpAddr::V6(Ipv6Addr::UNSPECIFIED), 0)
self.add_allowed_ip(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 0)
.add_allowed_ip(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)), 0)
}
/// Specifies that the allowed IP addresses in this configuration should replace
......
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