Просмотр исходного кода

always set fqdn so that remove operation works

tags/v0.10.5
Jonathan Cobb 4 лет назад
Родитель
Сommit
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) {


Загрузка…
Отмена
Сохранить