ne pas mettre à jour si les IP sont identiques
This commit is contained in:
parent
1e6c7fd300
commit
d0973dc0e3
@ -118,9 +118,13 @@ sub rt_dom_cli_autoupdate {
|
|||||||
|
|
||||||
say "old : $str_old";
|
say "old : $str_old";
|
||||||
say "new : $str_new";
|
say "new : $str_new";
|
||||||
|
if($$rr{rdata} eq $$param{rdata}) {
|
||||||
$zf->rr_mod($str_old, $str_new);
|
say "SAME";
|
||||||
$zone->update( $zf );
|
}
|
||||||
|
else {
|
||||||
|
$zf->rr_mod($str_old, $str_new);
|
||||||
|
$zone->update( $zf );
|
||||||
|
}
|
||||||
|
|
||||||
$app->disconnect();
|
$app->disconnect();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user