mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-06 20:45:00 +03:00
Tail Fragmentation (#9476)
This commit is contained in:
@@ -96,6 +96,15 @@ public partial class CoreConfigSingboxService
|
||||
new() { protocol = ["dns"] },
|
||||
],
|
||||
});
|
||||
if (_config.CoreBasicItem.EnableFinalFragment)
|
||||
{
|
||||
_coreConfig.route.rules.Add(new()
|
||||
{
|
||||
protocol = ["tls"],
|
||||
action = "route-options",
|
||||
tls_record_fragment = true,
|
||||
});
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -104,6 +113,14 @@ public partial class CoreConfigSingboxService
|
||||
port = [53],
|
||||
action = "hijack-dns",
|
||||
});
|
||||
if (_config.CoreBasicItem.EnableFinalFragment)
|
||||
{
|
||||
_coreConfig.route.rules.Add(new()
|
||||
{
|
||||
action = "route-options",
|
||||
tls_record_fragment = true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
var hostsDomains = new List<string>();
|
||||
|
||||
Reference in New Issue
Block a user