0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 19:39:35 +03:00

Refine "only" in Mux config

This commit is contained in:
RPRX
2023-04-10 10:15:16 +08:00
committed by GitHub
parent 05d24d6827
commit 29d7865d78
4 changed files with 14 additions and 7 deletions

View File

@ -595,7 +595,7 @@ type MultiplexingConfig struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
// Max number of concurrent connections that one Mux connection can handle.
Concurrency uint32 `protobuf:"varint,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
// Both(0), TCP(1), UDP(2).
// Both(0), TCP(net.Network_TCP), UDP(net.Network_UDP).
Only uint32 `protobuf:"varint,3,opt,name=only,proto3" json:"only,omitempty"`
}

View File

@ -98,6 +98,6 @@ message MultiplexingConfig {
bool enabled = 1;
// Max number of concurrent connections that one Mux connection can handle.
uint32 concurrency = 2;
// Both(0), TCP(1), UDP(2).
// Both(0), TCP(net.Network_TCP), UDP(net.Network_UDP).
uint32 only = 3;
}