v2.4.2 proactive domain fronting protection

This commit is contained in:
AJ ONeal 2018-08-24 23:38:00 -06:00
부모 2cfba7a2e7
커밋 8c32887b10
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -517,7 +517,7 @@ Greenlock.create = function (gl) {
req.headers.host = host.join(':');
}
if (gl.__sni_allow_fronting) {
if (!gl.__sni_allow_domain_fronting) {
if (req.socket && 'string' === typeof req.socket.servername) {
if (safehost && (safehost !== req.socket.servername.toLowerCase())) {
res.statusCode = 400;