mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-23 22:19:49 +00:00
5f5ae37571
* Added tcp fragmentation for freedom outbound * Added TCP_NODELAY to outbound sockopt * Changed fragment parameters to accept ranges and changed strategy to use length * Changed packetNumber to packets, supporting range. * Refactored the freedom fragment logic * Refine Write() --------- Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
37 lines
835 B
Protocol Buffer
37 lines
835 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package xray.proxy.freedom;
|
|
option csharp_namespace = "Xray.Proxy.Freedom";
|
|
option go_package = "github.com/xtls/xray-core/proxy/freedom";
|
|
option java_package = "com.xray.proxy.freedom";
|
|
option java_multiple_files = true;
|
|
|
|
import "common/protocol/server_spec.proto";
|
|
|
|
message DestinationOverride {
|
|
xray.common.protocol.ServerEndpoint server = 1;
|
|
}
|
|
|
|
message Fragment {
|
|
int32 min_interval = 1;
|
|
int32 max_interval = 2;
|
|
int32 min_length = 3;
|
|
int32 max_length = 4;
|
|
int32 start_packet = 5;
|
|
int32 end_packet = 6;
|
|
}
|
|
|
|
message Config {
|
|
enum DomainStrategy {
|
|
AS_IS = 0;
|
|
USE_IP = 1;
|
|
USE_IP4 = 2;
|
|
USE_IP6 = 3;
|
|
}
|
|
DomainStrategy domain_strategy = 1;
|
|
uint32 timeout = 2 [deprecated = true];
|
|
DestinationOverride destination_override = 3;
|
|
uint32 user_level = 4;
|
|
Fragment fragment = 5;
|
|
}
|