diff --git a/src/lib.rs b/src/lib.rs index 1e8f5e7..0b77eb0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,7 +119,7 @@ impl Options { self } - pub fn with_ipv6(mut self) -> Self { + pub fn with_ipv6_enabled(mut self) -> Self { self.ipv6_enabled = true; self } diff --git a/src/main.rs b/src/main.rs index 70ab8e4..84ec63b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,7 +92,7 @@ fn main() -> ExitCode { } if args.ipv6_enabled { - options = options.with_ipv6(); + options = options.with_ipv6_enabled(); } let interface = match args.tun_fd {