diff options
Diffstat (limited to 'modules/host/default.nix')
| -rw-r--r-- | modules/host/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/host/default.nix b/modules/host/default.nix index af1994a..1a9375e 100644 --- a/modules/host/default.nix +++ b/modules/host/default.nix @@ -207,8 +207,8 @@ ${lib.concatMapStrings (t: " ${t.name}) user=${t.user} ;;\n") taps} echo " or default)" echo "VM is a running VM's name (run-firecracker-vm --name) or tap;" echo " -v VM means the list it uses" - echo "RULE is DOMAIN (HTTPS, with subdomains, not decrypted)" - echo " or DOMAIN/PATH-PREFIX (HTTPS, decrypted to check the path)" + echo "RULE is https://DOMAIN (with subdomains, not decrypted)" + echo " or https://DOMAIN/PATH-PREFIX (decrypted to check the path)" echo " or tcp://ADDRESS[/PREFIXLEN]:PORT[-PORT] (likewise udp://...)" echo " or tcp://NAME:PORT[-PORT] (resolved by the host, IPv4)" echo "vms shows the running VMs' taps (as in the log), names and lists" @@ -261,7 +261,7 @@ ${lib.concatMapStrings (t: " ${t.name}) user=${t.user} ;;\n") taps} echo "fc-egress: bad rule: $r" >&2 exit 1 fi - if ! printf %s "$r" | grep -qxE '[a-z0-9-]+(\.[a-z0-9-]+)*(/[A-Za-z0-9._~!$&()*+,;=:@%/-]*)?' || + if ! printf %s "$r" | grep -qxE 'https://[a-z0-9-]+(\.[a-z0-9-]+)*(/[A-Za-z0-9._~!$&()*+,;=:@%/-]*)?' || printf %s "$r" | grep -qE '/\.\.?(/|$)'; then echo "fc-egress: bad rule: $r" >&2 exit 1 |
