From 11d4e4a0dce82b1180f0d6803e149cd972f3e244 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Wed, 23 Aug 2023 10:45:37 +0800 Subject: [PATCH] minor changes --- src/lib.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {