feat: refine firewall log matching logic for improved accuracy and add detailed logging for connection data retrieval
This commit is contained in:
@@ -1079,15 +1079,23 @@
|
||||
loading: false,
|
||||
connectionData: null,
|
||||
error: null,
|
||||
sourceIP: '{{ addslashes($sourceIP) }}',
|
||||
destIP: '{{ addslashes($destIP) }}',
|
||||
sourcePort: '{{ addslashes($sourcePort) }}',
|
||||
destPort: '{{ addslashes($destPort) }}',
|
||||
protocol: '{{ addslashes($protocol) }}',
|
||||
loadConnectionData() {
|
||||
this.loading = true;
|
||||
this.error = null;
|
||||
$wire.getNetworkAnalysisForLog('{{ $sourceIP }}', '{{ $destIP }}', '{{ $sourcePort }}', '{{ $destPort }}', '{{ $protocol }}')
|
||||
console.log('Loading connection data for:', this.sourceIP, '->', this.destIP, 'Port:', this.destPort, 'Protocol:', this.protocol);
|
||||
$wire.getNetworkAnalysisForLog(this.sourceIP, this.destIP, this.sourcePort, this.destPort, this.protocol)
|
||||
.then(data => {
|
||||
console.log('Received connection data:', data);
|
||||
this.connectionData = data;
|
||||
this.loading = false;
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Failed to load connection data:', err);
|
||||
this.error = 'Failed to load connection data';
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user