mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-05 21:20:09 +00:00
读取ignore_client_bandwidth参数
This commit is contained in:
@@ -109,6 +109,7 @@ type HysteriaNode struct {
|
|||||||
|
|
||||||
type Hysteria2Node struct {
|
type Hysteria2Node struct {
|
||||||
CommonNode
|
CommonNode
|
||||||
|
Ignore_Client_Bandwidth bool `json:"ignore_client_bandwidth"`
|
||||||
UpMbps int `json:"up_mbps"`
|
UpMbps int `json:"up_mbps"`
|
||||||
DownMbps int `json:"down_mbps"`
|
DownMbps int `json:"down_mbps"`
|
||||||
ObfsType string `json:"obfs"`
|
ObfsType string `json:"obfs"`
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ func (n *Hysteria2node) getHyConfig(info *panel.NodeInfo, config *conf.Options,
|
|||||||
Conn: conn,
|
Conn: conn,
|
||||||
Outbound: Outbound,
|
Outbound: Outbound,
|
||||||
BandwidthConfig: *n.getBandwidthConfig(info),
|
BandwidthConfig: *n.getBandwidthConfig(info),
|
||||||
IgnoreClientBandwidth: c.IgnoreClientBandwidth,
|
IgnoreClientBandwidth: info.Hysteria2.Ignore_Client_Bandwidth,
|
||||||
DisableUDP: c.DisableUDP,
|
DisableUDP: c.DisableUDP,
|
||||||
UDPIdleTimeout: c.UDPIdleTimeout,
|
UDPIdleTimeout: c.UDPIdleTimeout,
|
||||||
EventLogger: n.EventLogger,
|
EventLogger: n.EventLogger,
|
||||||
|
|||||||
@@ -372,6 +372,7 @@ func getInboundOptions(tag string, info *panel.NodeInfo, c *conf.Options) (optio
|
|||||||
ListenOptions: listen,
|
ListenOptions: listen,
|
||||||
UpMbps: info.Hysteria2.UpMbps,
|
UpMbps: info.Hysteria2.UpMbps,
|
||||||
DownMbps: info.Hysteria2.DownMbps,
|
DownMbps: info.Hysteria2.DownMbps,
|
||||||
|
IgnoreClientBandwidth: info.Hysteria2.Ignore_Client_Bandwidth,
|
||||||
Obfs: obfs,
|
Obfs: obfs,
|
||||||
InboundTLSOptionsContainer: option.InboundTLSOptionsContainer{
|
InboundTLSOptionsContainer: option.InboundTLSOptionsContainer{
|
||||||
TLS: &tls,
|
TLS: &tls,
|
||||||
|
|||||||
Reference in New Issue
Block a user