Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PowerDNS Load Balancing Nameserver
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sunet-systems
PowerDNS Load Balancing Nameserver
Commits
a11e34ae
Commit
a11e34ae
authored
3 years ago
by
Rob Riepel
Browse files
Options
Downloads
Patches
Plain Diff
Replace split() with regex capture group
parent
c7a56900
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lbbe
+2
-2
2 additions, 2 deletions
lbbe
with
2 additions
and
2 deletions
lbbe
+
2
−
2
View file @
a11e34ae
...
...
@@ -107,9 +107,9 @@ while (<>) {
}
# dynamic queries
elsif
(
$qname
=~
/.+\.$my_domain$/
)
{
elsif
(
$qname
=~
/
(?<residual>
.+
)
\.$my_domain$/
)
{
write_log
("
sending dynamic response for
$qname
/
$qtype
");
print
handle_lb_request
(
split
(
/\./
,
$qname
,
2
)
,
$qtype
,
$qclass
);
print
handle_lb_request
(
$+
{
residual
},
$my_domain
,
$qtype
,
$qclass
);
}
print
"
END
\n
";
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment