소스 검색

always set fqdn so that remove operation works

tags/v0.10.5
Jonathan Cobb 4 년 전
부모
커밋
e7404c8a2d
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -3
      bubble-server/src/main/java/bubble/rule/passthru/TlsPassthruConfig.java

+ 2
- 3
bubble-server/src/main/java/bubble/rule/passthru/TlsPassthruConfig.java 파일 보기

@@ -69,15 +69,14 @@ public class TlsPassthruConfig {
return !empty(feedList) ? Arrays.stream(feedList).collect(Collectors.toCollection(TreeSet::new)) : Collections.emptySet();
}

private class TlsPassthruMatcher {
private static class TlsPassthruMatcher {
@Getter @Setter private String fqdn;
@Getter @Setter private Pattern fqdnPattern;
public boolean hasPattern () { return fqdnPattern != null; }
public TlsPassthruMatcher (String fqdn) {
this.fqdn = fqdn;
if (fqdn.startsWith("/") && fqdn.endsWith("/")) {
this.fqdnPattern = Pattern.compile(fqdn.substring(1, fqdn.length()-1), Pattern.CASE_INSENSITIVE);
} else {
this.fqdn = fqdn;
}
}
public boolean matches (String val) {


불러오는 중...
취소
저장