mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-09 01:40:31 +08:00
feat:根据SNI返回SSL证书
This commit is contained in:
@@ -46,7 +46,7 @@ func CustomCert(w http.ResponseWriter, r *http.Request) {
|
||||
RespError(w, RespInternalErr, fmt.Sprintf("证书不合法,请重新上传:%v", err))
|
||||
return
|
||||
} else {
|
||||
dbdata.TLSCert = tlscert
|
||||
dbdata.LoadCertificate(tlscert)
|
||||
}
|
||||
RespSucess(w, "上传成功")
|
||||
}
|
||||
|
Reference in New Issue
Block a user