Skip to content

Commit 886b1fc

Browse files
committed
adjusts
1 parent d84b077 commit 886b1fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/com/mageddo/dnsproxyserver/solver/HostnameQuery.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ public boolean matches(String hostnamePattern) {
6060
}
6161
return false;
6262
}
63-
if (this.useRegex && hostnamePattern.startsWith(REGEX_TAG) && hostnamePattern.endsWith(
64-
REGEX_TAG)) {
63+
if (this.useRegex
64+
&& hostnamePattern.startsWith(REGEX_TAG)
65+
&& hostnamePattern.endsWith(REGEX_TAG)
66+
) {
6567
return this.hostname
6668
.getCanonicalValue()
6769
.matches(StringUtils.substringBetween(hostnamePattern, REGEX_TAG, REGEX_TAG))

0 commit comments

Comments
 (0)