- Timestamp:
- 01/17/13 16:19:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r586 r587 121 121 $errstr = $@; 122 122 $errstr =~ s/Fault returned from XML RPC Server, fault code 4: error executing RPC `dnsdb.$rpcsub'\.\s//; 123 print "error! $errstr\n";124 123 } 125 124 $rpccount++; … … 381 380 state => 1, # could make them globally configurable maybe 382 381 ); 383 if ( !_rpc('addRDNS', %rpcargs)) {382 if ($rpc_url && !_rpc('addRDNS', %rpcargs)) { 384 383 push @fails, ("$subzone" => $errstr); 385 384 } … … 1034 1033 1035 1034 # now we do the DNS dance for netblocks, if we have an RPC server to do it with. 1036 _rpc('addOrUpdateRevRec', cidr => "$args{cidr}", name => $args{rdns}, rpcuser => $args{user}) 1037 if $rpc_url; 1035 _rpc('addOrUpdateRevRec', cidr => "$args{cidr}", name => $args{rdns}, rpcuser => $args{user}); 1038 1036 1039 1037 return ('OK', 'OK'); … … 1495 1493 1496 1494 if ($rpc_url) { 1497 # Make an object to represent the XML-RPC server.1498 my $server = Frontier::Client->new(url => $rpc_url, debug => 0);1499 my $result;1500 1501 1495 # Use the first /16 or /24, rather than dithering over which sub-/14 /16 1502 1496 # or sub-/19 /24 to retrieve - it's the least-wrong way to do things.
Note:
See TracChangeset
for help on using the changeset viewer.