Add custom Sockopt support (#3517)

* Add custom sockopt

* Add custom level

* Change field

* Sth left
This commit is contained in:
风扇滑翔翼 2024-07-10 00:19:31 +08:00 committed by GitHub
parent ce637c0c23
commit 308f0c64c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 321 additions and 135 deletions

View file

@ -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;
}