mirror of
https://github.com/safing/portmaster
synced 2025-09-04 11:39:29 +00:00
Implement review suggestions
This commit is contained in:
parent
5939486767
commit
e5baae9bd0
2 changed files with 3 additions and 3 deletions
|
@ -87,7 +87,7 @@ func GetDNSRequestConnection(packetInfo *packet.Info) (conn *Connection, ok bool
|
||||||
defer dnsRequestConnectionsLock.RUnlock()
|
defer dnsRequestConnectionsLock.RUnlock()
|
||||||
|
|
||||||
conn, ok = dnsRequestConnections[key]
|
conn, ok = dnsRequestConnections[key]
|
||||||
return
|
return conn, ok
|
||||||
}
|
}
|
||||||
|
|
||||||
// deleteDNSRequestConnection removes a connection from the dns request connections.
|
// deleteDNSRequestConnection removes a connection from the dns request connections.
|
||||||
|
|
|
@ -112,8 +112,8 @@ func (p *Process) IsIdentified() bool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsLocal returns whether the process has been identified as a local process.
|
// HasValidPID returns whether the process has valid PID of an actual process.
|
||||||
func (p *Process) IsLocal() bool {
|
func (p *Process) HasValidPID() bool {
|
||||||
// Check if process exists.
|
// Check if process exists.
|
||||||
if p == nil {
|
if p == nil {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Add table
Reference in a new issue