mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-09-12 19:24:32 +00:00
feat: masquerade string mode
This commit is contained in:
@@ -136,6 +136,14 @@ func TestServerConfig(t *testing.T) {
|
||||
URL: "https://some.site.net",
|
||||
RewriteHost: true,
|
||||
},
|
||||
String: serverConfigMasqueradeString{
|
||||
Content: "aint nothin here",
|
||||
Headers: map[string]string{
|
||||
"content-type": "text/plain",
|
||||
"custom-haha": "lol",
|
||||
},
|
||||
StatusCode: 418,
|
||||
},
|
||||
ListenHTTP: ":80",
|
||||
ListenHTTPS: ":443",
|
||||
ForceHTTPS: true,
|
||||
|
Reference in New Issue
Block a user