[PATCH net] docs: tproxy: fix code block style

Levi Zim via B4 Relay posted 1 patch 7 months, 3 weeks ago
There is a newer version of this series
Documentation/networking/tproxy.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH net] docs: tproxy: fix code block style
Posted by Levi Zim via B4 Relay 7 months, 3 weeks ago
From: Levi Zim <rsworktech@outlook.com>

The last command is not indented thus does not show as code block when
rendered. This patch fixes it.

Fixes: 4ac0b122ee63 ("docs: networking: convert tproxy.txt to ReST")
Signed-off-by: Levi Zim <rsworktech@outlook.com>
---
 Documentation/networking/tproxy.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/networking/tproxy.rst b/Documentation/networking/tproxy.rst
index 7f7c1ff6f159ed98d96c63d99c98ddbaefd47124..102c030e3cf06d6e9607f7668b417b99a3a62300 100644
--- a/Documentation/networking/tproxy.rst
+++ b/Documentation/networking/tproxy.rst
@@ -71,7 +71,7 @@ add rules like this to the iptables ruleset above::
 
 Or the following rule to nft:
 
-# nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept
+    # nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept
 
 Note that for this to work you'll have to modify the proxy to enable (SOL_IP,
 IP_TRANSPARENT) for the listening socket.

---
base-commit: f73f05c6f711fd1628c7565441b9febc0c4d6c58
change-id: 20250427-tproxy-docs-fix-ccbbbf42549f

Best regards,
-- 
Levi Zim <rsworktech@outlook.com>
Re: [PATCH net] docs: tproxy: fix code block style
Posted by Bagas Sanjaya 7 months, 3 weeks ago
On Sun, Apr 27, 2025 at 10:36:59PM +0800, Levi Zim via B4 Relay wrote:
>  Or the following rule to nft:
>  
> -# nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept
> +    # nft add rule filter divert tcp dport 80 tproxy to :50080 meta mark set 1 accept

Use double-colon syntax instead to wrap the rule above in literal code block
like in other rules.

Thanks.

-- 
An old man doll... just what I always wanted! - Clara