mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Log unusual high unused port finding attempts
This commit is contained in:
parent
a884a30660
commit
f8e5f81a2e
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ nextPort:
|
|||
}
|
||||
}
|
||||
|
||||
// Log if it took more than 10 attempts.
|
||||
if i >= 10 {
|
||||
log.Warningf("network: took %d attempts to find a suitable unused port for pre-auth", i+1)
|
||||
}
|
||||
|
||||
// The checks have passed. We have found a good unused port.
|
||||
return port, true
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue