Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
origosys
External Dns
Commits
6f543ecd
Commit
6f543ecd
authored
6 years ago
by
Curtis Mattoon
Browse files
Options
Download
Email Patches
Plain Diff
Fix issues #1055 #1056 #1057 introduced by #835
parent
1328c295
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
provider/domain_filter.go
provider/domain_filter.go
+1
-1
No files found.
provider/domain_filter.go
View file @
6f543ecd
...
...
@@ -62,7 +62,7 @@ func matchFilter(filters []string, domain string, emptyval bool) bool {
strippedDomain
:=
strings
.
ToLower
(
strings
.
TrimSuffix
(
domain
,
"."
))
if
filter
==
""
{
return
true
return
emptyval
}
else
if
strings
.
HasPrefix
(
filter
,
"."
)
&&
strings
.
HasSuffix
(
strippedDomain
,
filter
)
{
return
true
}
else
if
strings
.
Count
(
strippedDomain
,
"."
)
==
strings
.
Count
(
filter
,
"."
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment