diff --git a/docs/configuration/shared/dial.md b/docs/configuration/shared/dial.md index 8139c751..927fa13a 100644 --- a/docs/configuration/shared/dial.md +++ b/docs/configuration/shared/dial.md @@ -11,6 +11,7 @@ "connect_timeout": "5s", "tcp_fast_open": false, "tcp_multi_path": false, + "tls_fragment": {}, "udp_fragment": false, "domain_strategy": "prefer_ipv6", "fallback_delay": "300ms" @@ -63,6 +64,10 @@ Enable TCP Fast Open. Enable TCP Multi Path. +#### tls_fragment + +Enable TLS fragmentation, see [TLS Fragment](/configuration/shared/tls-fragment) for details. + #### udp_fragment Enable UDP fragmentation. @@ -84,7 +89,7 @@ If set, the requested domain name will be resolved to IP before connect. | Outbound | Effected domains | Fallback Value | |----------|--------------------------|-------------------------------------------| -| `direct` | Domain in request | Take `inbound.domain_strategy` if not set | +| `direct` | Domain in request | Take `inbound.domain_strategy` if not set | | others | Domain in server address | / | #### fallback_delay @@ -94,4 +99,4 @@ That is, is the amount of time to wait for connection to succeed before assuming that IPv4/IPv6 is misconfigured and falling back to other type of addresses. If zero, a default delay of 300ms is used. -Only take effect when `domain_strategy` is set. \ No newline at end of file +Only take effect when `domain_strategy` is set. diff --git a/docs/configuration/shared/tls-fragment.md b/docs/configuration/shared/tls-fragment.md new file mode 100644 index 00000000..5bd2042e --- /dev/null +++ b/docs/configuration/shared/tls-fragment.md @@ -0,0 +1,23 @@ +### Structure + +```json +{ + "enabled": false, + "size": "100-200", + "sleep": "10-20", +} +``` + +### Fields + +#### enabled + +Enable TLS clientHello packet fragmentation. + +#### size + +Random range of fragmented packets' size in bytes. + +#### sleep + +Random range of sleeping in between sending fragments.