mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Add custom Sockopt support (#3517)
* Add custom sockopt * Add custom level * Change field * Sth left
This commit is contained in:
parent
ce637c0c23
commit
308f0c64c3
4 changed files with 321 additions and 135 deletions
|
@ -68,6 +68,13 @@ message ProxyConfig {
|
|||
bool transportLayerProxy = 2;
|
||||
}
|
||||
|
||||
message CustomSockopt {
|
||||
string level = 1;
|
||||
string opt = 2;
|
||||
string value = 3;
|
||||
string type = 4;
|
||||
}
|
||||
|
||||
// SocketConfig is options to be applied on network sockets.
|
||||
message SocketConfig {
|
||||
// Mark of the connection. If non-zero, the value will be set to SO_MARK.
|
||||
|
@ -121,4 +128,6 @@ message SocketConfig {
|
|||
bool tcp_no_delay = 18;
|
||||
|
||||
bool tcp_mptcp = 19;
|
||||
|
||||
repeated CustomSockopt customSockopt = 20;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue