Fix allowing connections to self

This commit is contained in:
Daniel
2019-05-22 16:08:51 +02:00
parent f0decfa633
commit 1873999b38

View File

@@ -489,7 +489,12 @@ func DecideOnLink(comm *network.Communication, link *network.Link, pkt packet.Pa
if otherProcess.Pid == comm.Process().Pid {
log.Infof("firewall: permitting connection to self %s", comm)
link.Accept("connection to self")
link.AddReason("connection to self")
link.Lock()
link.Verdict = network.VerdictAccept
link.SaveWhenFinished()
link.Unlock()
return
}