return ssl alert unrecognized_name when https domain not registered (#3620)

This commit is contained in:
Zeyu Dong
2023-09-18 02:28:05 -04:00
committed by GitHub
parent bae0b4d7c0
commit 5c8ea51eb5
5 changed files with 28 additions and 9 deletions

View File

@@ -67,7 +67,7 @@ func getNotFoundPageContent() []byte {
return buf
}
func notFoundResponse() *http.Response {
func NotFoundResponse() *http.Response {
header := make(http.Header)
header.Set("server", "frp/"+version.Full())
header.Set("Content-Type", "text/html")