mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-08-26 11:11:46 +00:00
feat: new string-based speed (up/down) options
This commit is contained in:
@@ -192,8 +192,9 @@ func server(config *serverConfig) {
|
||||
logrus.WithField("error", err).Fatal("Prometheus HTTP server error")
|
||||
}()
|
||||
}
|
||||
up, down, _ := config.Speed()
|
||||
server, err := core.NewServer(config.Listen, config.Protocol, tlsConfig, quicConfig, transport.DefaultServerTransport,
|
||||
uint64(config.UpMbps)*mbpsToBps, uint64(config.DownMbps)*mbpsToBps,
|
||||
up, down,
|
||||
func(refBPS uint64) congestion.CongestionControl {
|
||||
return hyCongestion.NewBrutalSender(congestion.ByteCount(refBPS))
|
||||
}, config.DisableUDP, aclEngine, obfuscator, connectFunc, disconnectFunc,
|
||||
|
Reference in New Issue
Block a user