Fix hysteria2 mbps calculation

This commit is contained in:
世界
2023-09-17 00:25:53 +08:00
parent e80084316d
commit 743df5373b
5 changed files with 20 additions and 7 deletions

View File

@@ -46,7 +46,9 @@ func testHysteria2Self(t *testing.T, salamanderPassword string) {
Listen: option.NewListenAddress(netip.IPv4Unspecified()),
ListenPort: serverPort,
},
Obfs: obfs,
UpMbps: 100,
DownMbps: 100,
Obfs: obfs,
Users: []option.Hysteria2User{{
Password: "password",
}},
@@ -71,6 +73,8 @@ func testHysteria2Self(t *testing.T, salamanderPassword string) {
Server: "127.0.0.1",
ServerPort: serverPort,
},
UpMbps: 100,
DownMbps: 100,
Obfs: obfs,
Password: "password",
TLS: &option.OutboundTLSOptions{