Skip to content

Commit e472a33

Browse files
committed
Call v-change-dns-domain-ip only if ip was changed
1 parent 198f8ea commit e472a33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/edit/web/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
}
101101

102102
// Chane dns domain IP
103-
if (empty($_SESSION['error_msg'])) {
103+
if (($v_ip != $_POST['v_ip']) && (empty($_SESSION['error_msg']))) {
104104
exec (VESTA_CMD."v-list-dns-domain ".$v_username." ".$v_domain." json", $output, $return_var);
105105
unset($output);
106106
if ($return_var == 0 ) {
@@ -112,7 +112,7 @@
112112
}
113113

114114
// Change dns ip for each alias
115-
if (empty($_SESSION['error_msg'])) {
115+
if (($v_ip != $_POST['v_ip']) && (empty($_SESSION['error_msg']))) {
116116
foreach($valiases as $v_alias ){
117117
exec (VESTA_CMD."v-list-dns-domain ".$v_username." '".$v_alias."' json", $output, $return_var);
118118
unset($output);

0 commit comments

Comments
 (0)