Fix hysteria test

This commit is contained in:
世界
2022-11-10 21:10:18 +08:00
parent 0ef7d902fa
commit 8fce0003be
3 changed files with 19 additions and 15 deletions

View File

@@ -29,10 +29,12 @@ func TestHysteriaSelf(t *testing.T) {
Listen: option.ListenAddress(netip.IPv4Unspecified()),
ListenPort: serverPort,
},
UpMbps: 100,
DownMbps: 100,
AuthString: "password",
Obfs: "fuck me till the daylight",
UpMbps: 100,
DownMbps: 100,
Users: []option.HysteriaUser{{
AuthString: "password",
}},
Obfs: "fuck me till the daylight",
TLS: &option.InboundTLSOptions{
Enabled: true,
ServerName: "example.org",
@@ -91,10 +93,12 @@ func TestHysteriaInbound(t *testing.T) {
Listen: option.ListenAddress(netip.IPv4Unspecified()),
ListenPort: serverPort,
},
UpMbps: 100,
DownMbps: 100,
AuthString: "password",
Obfs: "fuck me till the daylight",
UpMbps: 100,
DownMbps: 100,
Users: []option.HysteriaUser{{
AuthString: "password",
}},
Obfs: "fuck me till the daylight",
TLS: &option.InboundTLSOptions{
Enabled: true,
ServerName: "example.org",