From bd92e716cea9057a72690803094ccf44268f1877 Mon Sep 17 00:00:00 2001 From: Toby Date: Fri, 26 Jan 2024 13:57:15 -0800 Subject: [PATCH] docs: improve grammar --- docs/Analyzers.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/Analyzers.md b/docs/Analyzers.md index 5c2e641..7333f7d 100644 --- a/docs/Analyzers.md +++ b/docs/Analyzers.md @@ -269,11 +269,11 @@ Example for blocking Trojan connections: expr: trojan != nil && trojan.yes ``` -## Socks5 +## SOCKS5 -Socks5 that don't need auth: +SOCKS5 without auth: -``` json +```json5 { "socks5": { "req": { @@ -298,9 +298,9 @@ Socks5 that don't need auth: } ``` -Socks5 that need auth: +SOCKS5 with auth: -``` json +```json5 { "socks5": { "req": { @@ -328,16 +328,14 @@ Socks5 that need auth: } ``` -Example for blocking Socks5 connections: +Example for blocking connections to `google.com:80` and user `foobar`: ```yaml -# Block connection to google.com:80 -- name: Block Google +- name: Block SOCKS5 google.com:80 action: block expr: string(socks5?.req?.addr) endsWith "google.com" && socks5?.req?.port == 80 -# Block specified user -- name: Block user foobar +- name: Block SOCKS5 user foobar action: block expr: socks5?.req?.auth?.method == 2 && socks5?.req?.auth?.username == "foobar" ```