修正拦截策略allow http2开关
This commit is contained in:
@@ -719,6 +719,17 @@ public class CheckIpFormatThread implements Callable<String>{
|
|||||||
map.put("mirror_client", mirrorClient);
|
map.put("mirror_client", mirrorClient);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(allowHttp2==null) {
|
||||||
|
allowHttp2=1;
|
||||||
|
map.put("allow_http2", allowHttp2);
|
||||||
|
}else {
|
||||||
|
if(allowHttp2!=0&&allowHttp2!=1) {
|
||||||
|
errInfo.append(String.format(prop.getProperty("is_incorrect"),
|
||||||
|
prop.getProperty("ssl_ver_allow_http2","SSL version allow http2") + " ") + ";");
|
||||||
|
}else {
|
||||||
|
map.put("allow_http2", allowHttp2);
|
||||||
|
}
|
||||||
|
}
|
||||||
if(mirrorClient==0) {
|
if(mirrorClient==0) {
|
||||||
int minSort=0,maxSort=0;
|
int minSort=0,maxSort=0;
|
||||||
if(StringUtils.isBlank(min)) {
|
if(StringUtils.isBlank(min)) {
|
||||||
@@ -727,17 +738,6 @@ public class CheckIpFormatThread implements Callable<String>{
|
|||||||
if(StringUtils.isBlank(max)) {
|
if(StringUtils.isBlank(max)) {
|
||||||
max="tls13";
|
max="tls13";
|
||||||
}
|
}
|
||||||
if(allowHttp2==null) {
|
|
||||||
allowHttp2=1;
|
|
||||||
map.put("allow_http2", allowHttp2);
|
|
||||||
}else {
|
|
||||||
if(allowHttp2!=0&&allowHttp2!=1) {
|
|
||||||
errInfo.append(String.format(prop.getProperty("is_incorrect"),
|
|
||||||
prop.getProperty("ssl_ver_allow_http2","SSL version allow http2") + " ") + ";");
|
|
||||||
}else {
|
|
||||||
map.put("allow_http2", allowHttp2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for(SysDataDictionaryItem sslversion: sslversions) {
|
for(SysDataDictionaryItem sslversion: sslversions) {
|
||||||
if(sslversion.getItemCode().equals(min)) {
|
if(sslversion.getItemCode().equals(min)) {
|
||||||
minSort=sslversion.getItemSort();
|
minSort=sslversion.getItemSort();
|
||||||
|
|||||||
@@ -869,20 +869,20 @@ legend{padding:.5em;border:0;width:auto;font-family: "Open Sans", sans-serif;col
|
|||||||
<div for="max"></div>
|
<div for="max"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div calss="row">
|
</div>
|
||||||
<div class="col-md-6">
|
<div calss="row">
|
||||||
<div class="form-group">
|
<div class="col-md-6">
|
||||||
<label class="control-label col-md-3">
|
<div class="form-group">
|
||||||
<spring:message code="allow_http2" />
|
<label class="control-label col-md-3">
|
||||||
</label>
|
<spring:message code="allow_http2" />
|
||||||
<div class="col-md-6">
|
</label>
|
||||||
<div class="bootstrap-switch">
|
<div class="col-md-6">
|
||||||
<input type="checkbox" id="allow_http2" name="allow_http2" class="switch form-control sslVersionCheck"
|
<div class="bootstrap-switch">
|
||||||
value="${_cfg.cfgId eq null?1:_cfg.userRegion.ssl_ver.allow_http2 }" <c:if test="${_cfg.cfgId eq null or _cfg.userRegion.ssl_ver.allow_http2 eq 1}">checked</c:if>/>
|
<input type="checkbox" id="allow_http2" name="allow_http2" class="switch form-control sslVersionCheck"
|
||||||
</div>
|
value="${_cfg.cfgId eq null?1:_cfg.userRegion.ssl_ver.allow_http2 }" <c:if test="${_cfg.cfgId eq null or _cfg.userRegion.ssl_ver.allow_http2 eq 1}">checked</c:if>/>
|
||||||
</div>
|
</div>
|
||||||
<div for="allow_http2"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div for="allow_http2"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user