Refactor connection scanning logic to use a static scan count variable
This commit is contained in:
@@ -47,7 +47,7 @@ class ProtocolBlockingService {
|
||||
|
||||
try {
|
||||
// Monitor both TCP and UDP connections
|
||||
final tcpResult = await Process.run('ss', ['-tnp', 'state', 'syn-sent,established']);
|
||||
final tcpResult = await Process.run('ss', ['-tnp']);
|
||||
final udpResult = await Process.run('ss', ['-unp']);
|
||||
|
||||
if (_scanCount % 100 == 0) { // Log every 10 seconds
|
||||
|
||||
Reference in New Issue
Block a user