Skip to content

Commit e63545f

Browse files
committed
Improved: FS#2131 - skip network reconfigure requests on mirror servers that are for a different server_id
1 parent 1bf4621 commit e63545f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server/plugins-available/network_settings_plugin.inc.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,12 @@ function update($event_name,$data) {
239239
}
240240

241241
} else {
242-
$app->log('Network configuration disabled in server settings or server is a mirror server.',LOGLEVEL_DEBUG);
242+
if($data['mirrored'] == true) {
243+
$app->log('Skipping network config request. IP addresses from amster are not configured on the mirror.',LOGLEVEL_DEBUG);
244+
}
245+
if($server_config['auto_network_configuration'] == 'n') {
246+
$app->log('Network configuration disabled in server settings.',LOGLEVEL_DEBUG);
247+
}
243248
}
244249

245250
}

0 commit comments

Comments
 (0)