Commit 088b6fb9 authored by Rob Riepel's avatar Rob Riepel
Browse files

Replace split() with regex capture group

parent a11e34ae
......@@ -130,8 +130,8 @@ sub handle_lb_request {
# if the name is "show", return status of load-balanced name in $domain
my $show = "";
if ($residual eq "show" and $qtype eq "ANY") {
($residual,$domain) = split(/\./,$domain,2);
if ($residual =~ /^show\.(?<residual>.+)/ and $qtype eq "ANY") {
$residual = $+{residual};
$qtype = "TXT";
$show = "show.";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment