Add v2ray transport to trojan

This commit is contained in:
世界
2022-08-23 12:11:56 +08:00
parent 2ba2f0298c
commit c9b7acd22c
6 changed files with 197 additions and 81 deletions

View File

@@ -43,7 +43,7 @@ func TestTrojanOutbound(t *testing.T) {
ServerPort: serverPort,
},
Password: "password",
TLSOptions: &option.OutboundTLSOptions{
TLS: &option.OutboundTLSOptions{
Enabled: true,
ServerName: "example.org",
CertificatePath: certPem,
@@ -107,7 +107,7 @@ func TestTrojanSelf(t *testing.T) {
ServerPort: serverPort,
},
Password: "password",
TLSOptions: &option.OutboundTLSOptions{
TLS: &option.OutboundTLSOptions{
Enabled: true,
ServerName: "example.org",
CertificatePath: certPem,