Add multiplexer

This commit is contained in:
世界 2022-07-30 00:29:22 +08:00
parent 83154eadd3
commit 457de86819
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
47 changed files with 1244 additions and 174 deletions

View file

@ -98,3 +98,10 @@ type ServerOptions struct {
func (o ServerOptions) Build() M.Socksaddr {
return M.ParseSocksaddrHostPort(o.Server, o.ServerPort)
}
type MultiplexOptions struct {
Enabled bool `json:"enabled,omitempty"`
MaxConnections int `json:"max_connections,omitempty"`
MinStreams int `json:"min_streams,omitempty"`
MaxStreams int `json:"max_streams,omitempty"`
}