diff --git a/modules/csv-host-importer/actions/CsvHostImport.php b/modules/csv-host-importer/actions/CsvHostImport.php index d0915d5..cc46e00 100644 --- a/modules/csv-host-importer/actions/CsvHostImport.php +++ b/modules/csv-host-importer/actions/CsvHostImport.php @@ -349,7 +349,7 @@ private function importHosts(): bool { 'ip' => $host['JMX_IP'], 'main' => 1, 'useip' => $host['JMX_IP'] !== '' ? 1 : 0, - 'port' => $host['JMX_IP'] !== '' ? intval($host['JMX_IP']) : 12345, + 'port' => $host['JMX_PORT'] !== '' ? intval($host['JMX_PORT']) : 12345, ]; }