]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #15704 from miodvallat/polyglot
authorMiod Vallat <miod.vallat@powerdns.com>
Thu, 17 Jul 2025 15:23:18 +0000 (17:23 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Jul 2025 15:23:18 +0000 (17:23 +0200)
Rework pdnsutil command syntax for more consistency and future flexibility

1  2 
pdns/pdnsutil.cc

index 8abdea6aff4fcf910ac122284ebbf22a78853003,fe14db11a996563bef8eb69da83be87cca3e0581..1f4517c9c75f9dc1ab6495e698931854b24fd976
@@@ -3679,9 -4219,9 +4219,9 @@@ static int setSignalingZone(vector<stri
      return 1;
    }
  
-   ZoneName zone(cmds.at(1));
+   ZoneName zone(cmds.at(0));
  
 -  if(zone.operator const DNSName&().countLabels() == 0 || zone.operator const DNSName&().getRawLabel(0) != "_signal") {
 +  if(zone.operator const DNSName&().countLabels() == 0 || !pdns_iequals(zone.operator const DNSName&().getRawLabel(0), "_signal")) {
      cerr << "Signaling zone's first label must be '_signal': " << zone << endl;
      return 1;
    }