Refactor inbound/outbound options struct

This commit is contained in:
世界 2023-12-11 18:36:06 +08:00
parent 36b0f2e91a
commit 6ddcd3954d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
31 changed files with 844 additions and 697 deletions

View file

@ -41,11 +41,13 @@ func testV2RayGRPCInbound(t *testing.T, forceLite bool) {
UUID: userId.String(),
},
},
TLS: &option.InboundTLSOptions{
Enabled: true,
ServerName: "example.org",
CertificatePath: certPem,
KeyPath: keyPem,
InboundTLSOptionsContainer: option.InboundTLSOptionsContainer{
TLS: &option.InboundTLSOptions{
Enabled: true,
ServerName: "example.org",
CertificatePath: certPem,
KeyPath: keyPem,
},
},
Transport: &option.V2RayTransportOptions{
Type: C.V2RayTransportTypeGRPC,
@ -147,10 +149,12 @@ func testV2RayGRPCOutbound(t *testing.T, forceLite bool) {
},
UUID: userId.String(),
Security: "zero",
TLS: &option.OutboundTLSOptions{
Enabled: true,
ServerName: "example.org",
CertificatePath: certPem,
OutboundTLSOptionsContainer: option.OutboundTLSOptionsContainer{
TLS: &option.OutboundTLSOptions{
Enabled: true,
ServerName: "example.org",
CertificatePath: certPem,
},
},
Transport: &option.V2RayTransportOptions{
Type: C.V2RayTransportTypeGRPC,