This commit is contained in:
世界
2023-07-11 14:03:55 +08:00
parent a88060a0ab
commit 3b34f63e03
17 changed files with 172 additions and 214 deletions

View File

@@ -8,7 +8,8 @@ import (
"github.com/sagernet/sing-box/option"
)
func TestProxyProtocol(t *testing.T) {
// Since this is a feature one-off added by outsiders, I won't address these anymore.
func _TestProxyProtocol(t *testing.T) {
startInstance(t, option.Options{
Inbounds: []option.Inbound{
{
@@ -38,7 +39,7 @@ func TestProxyProtocol(t *testing.T) {
},
{
Type: C.TypeDirect,
Tag: "trojan-out",
Tag: "proxy-out",
DirectOptions: option.DirectOutboundOptions{
OverrideAddress: "127.0.0.1",
OverridePort: serverPort,
@@ -51,7 +52,7 @@ func TestProxyProtocol(t *testing.T) {
{
DefaultOptions: option.DefaultRule{
Inbound: []string{"mixed-in"},
Outbound: "trojan-out",
Outbound: "proxy-out",
},
},
},