Private
Public Access
1
0

feat: refine firewall log matching logic for improved accuracy and add detailed logging for connection data retrieval

This commit is contained in:
2025-12-04 22:42:39 -05:00
parent 8c991c615a
commit 2aa65911b7
2 changed files with 16 additions and 18 deletions

View File

@@ -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;
});