* [PATCH net] docs: tproxy: fix code block style
@ 2025-04-27 14:36 Levi Zim via B4 Relay
2025-04-28 11:20 ` Bagas Sanjaya
0 siblings, 1 reply; 3+ messages in thread
From: Levi Zim via B4 Relay @ 2025-04-27 14:36 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Simon Horman, Jonathan Corbet
Cc: netdev, linux-doc, linux-kernel, Levi Zim
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>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] docs: tproxy: fix code block style
2025-04-27 14:36 [PATCH net] docs: tproxy: fix code block style Levi Zim via B4 Relay
@ 2025-04-28 11:20 ` Bagas Sanjaya
2025-04-29 14:51 ` Levi Zim
0 siblings, 1 reply; 3+ messages in thread
From: Bagas Sanjaya @ 2025-04-28 11:20 UTC (permalink / raw)
To: rsworktech, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Simon Horman, Jonathan Corbet
Cc: netdev, linux-doc, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 462 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] docs: tproxy: fix code block style
2025-04-28 11:20 ` Bagas Sanjaya
@ 2025-04-29 14:51 ` Levi Zim
0 siblings, 0 replies; 3+ messages in thread
From: Levi Zim @ 2025-04-29 14:51 UTC (permalink / raw)
To: Bagas Sanjaya, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Simon Horman, Jonathan Corbet
Cc: netdev, linux-doc, linux-kernel
On 2025-04-28 19:20, Bagas Sanjaya wrote:
> 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.
Nice catch! I forgot to add that. Fixed in v2.
>
> Thanks.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-29 14:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-27 14:36 [PATCH net] docs: tproxy: fix code block style Levi Zim via B4 Relay
2025-04-28 11:20 ` Bagas Sanjaya
2025-04-29 14:51 ` Levi Zim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).