feat(protocol): add server protocol configuration query and enhance protocol options

This commit is contained in:
Chang lue Tsen
2025-09-13 14:20:04 -04:00
parent c1c913cb00
commit 2c5efa2026
10 changed files with 199 additions and 31 deletions
+15
View File
@@ -1448,6 +1448,12 @@ type Protocol struct {
ReduceRtt bool `json:"reduce_rtt,omitempty"`
UDPRelayMode string `json:"udp_relay_mode,omitempty"`
CongestionController string `json:"congestion_controller,omitempty"`
Plugin string `json:"plugin,omitempty"` // obfs, v2ray-plugin, simple-obfs
PluginOptions string `json:"plugin_options,omitempty"` // plugin options, eg: obfs=http;obfs-host=www.bing.com
Multiplex string `json:"multiplex,omitempty"` // mux, eg: off/low/medium/high
PaddingScheme string `json:"padding_scheme,omitempty"` // padding scheme
UpMbps int `json:"up_mbps,omitempty"` // upload speed limit
DownMbps int `json:"down_mbps,omitempty"` // download speed limit
}
type PubilcRegisterConfig struct {
@@ -1566,6 +1572,15 @@ type QueryQuotaTaskStatusResponse struct {
Errors string `json:"errors"`
}
type QueryServerConfigRequest struct {
ServerID int64 `path:"server_id"`
SecretKey string `header:"secret_key"`
}
type QueryServerConfigResponse struct {
Protocols []Protocol `json:"protocols"`
}
type QuerySubscribeGroupListResponse struct {
List []SubscribeGroup `json:"list"`
Total int64 `json:"total"`