all: support h3:// protocol prefix

This commit is contained in:
Cuong Manh Le
2024-09-17 16:52:50 +07:00
committed by Cuong Manh Le
parent 082d14a9ba
commit 08fe04f1ee
3 changed files with 42 additions and 6 deletions
+21
View File
@@ -178,6 +178,27 @@ func TestUpstreamConfig_Init(t *testing.T) {
u: u2,
},
},
{
"h3",
&UpstreamConfig{
Name: "doh3",
Type: "doh3",
Endpoint: "h3://example.com",
BootstrapIP: "",
Domain: "",
Timeout: 0,
},
&UpstreamConfig{
Name: "doh3",
Type: "doh3",
Endpoint: "https://example.com",
BootstrapIP: "",
Domain: "example.com",
Timeout: 0,
IPStack: IpStackBoth,
u: u1,
},
},
}
for _, tc := range tests {