This commit is contained in:
世界
2022-10-08 20:30:52 +08:00
parent a01bb569d1
commit badc454452
3 changed files with 11 additions and 3 deletions

View File

@@ -27,6 +27,12 @@ func TestShadowTLS(t *testing.T) {
func testShadowTLS(t *testing.T, password string) {
method := shadowaead_2022.List[0]
ssPassword := mkBase64(t, 16)
var version int
if password != "" {
version = 2
} else {
version = 1
}
startInstance(t, option.Options{
Inbounds: []option.Inbound{
{
@@ -53,6 +59,7 @@ func testShadowTLS(t *testing.T, password string) {
ServerPort: 443,
},
},
Version: version,
Password: password,
},
},
@@ -95,6 +102,7 @@ func testShadowTLS(t *testing.T, password string) {
Enabled: true,
ServerName: "google.com",
},
Version: version,
Password: password,
},
},