Refactor inbound/outbound options struct

This commit is contained in:
世界
2023-12-24 21:52:37 +08:00
parent 64ed8c0ff4
commit ad93b8fba4
31 changed files with 844 additions and 697 deletions
+14 -10
View File
@@ -74,11 +74,13 @@ func TestNaiveInbound(t *testing.T) {
},
},
Network: network.NetworkTCP,
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,
},
},
},
},
@@ -116,11 +118,13 @@ func TestNaiveHTTP3Inbound(t *testing.T) {
},
},
Network: network.NetworkUDP,
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,
},
},
},
},