From 80c84192ad63c62703ac5b8310a890defd971af3 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Fri, 15 May 2026 16:03:22 +0200 Subject: [PATCH] Use "@-alias" wording instead of "@host" --- src/main.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2753f02..3dd9ba8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -52,13 +52,14 @@ struct Args { #[clap( long, help = "Comma-separated list of CIDRs to allow the traffic to \ - (e.g. --allow=192.168.0.0/24 may be used to allow a LAN access for a VM) \ - or @host to match the vmnet bridge gateway IP. \ + (e.g. --allow=192.168.0.0/24 may be used to allow a LAN access for a VM), \ + plus supported @-aliases. Currently the only supported @-alias is @host, \ + which matches the vmnet bridge gateway IP. \ When used with --block, the longest prefix match always wins. \ In case an identical prefix is both --allow'ed and --block'ed, \ blocking will take precedence. --allow=0.0.0.0/0 is a special case, \ it additionally disables bridge isolation (even when --block=0.0.0.0/0 is specified).", - value_name = "comma-separated CIDRs or @host", + value_name = "comma-separated CIDRs or @-alias", use_value_delimiter = true, action = clap::ArgAction::Set )] @@ -68,10 +69,12 @@ struct Args { long, help = "Comma-separated list of CIDRs to block the traffic to \ (e.g. --block=0.0.0.0/0 may be used to establish a default deny policy \ - that is further relaxed with --allow) or @host to match the vmnet bridge gateway IP. \ - the longest prefix match always wins. In case the same prefix is both \ - --allow'ed and --block'ed, blocking takes precedence.", - value_name = "comma-separated CIDRs or @host", + that is further relaxed with --allow), plus supported @-aliases. \ + Currently the only supported @-alias is @host, which matches the vmnet bridge gateway IP. \ + When used with --allow, the longest prefix match always wins. \ + In case an identical prefix is both --allow'ed and --block'ed, \ + blocking will take precedence.", + value_name = "comma-separated CIDRs or @-alias", use_value_delimiter = true, action = clap::ArgAction::Set )]