mirror of
https://github.com/safing/portmaster
synced 2025-09-10 15:08:22 +00:00
Add IP scoping data to entity.Entity and network.Connection
This commit is contained in:
parent
eb22636c8e
commit
43cfba8445
10 changed files with 92 additions and 63 deletions
|
@ -286,7 +286,7 @@ func initialHandler(conn *network.Connection, pkt packet.Packet) {
|
|||
// TODO: add implementation for forced tunneling
|
||||
if pkt.IsOutbound() &&
|
||||
captain.ClientReady() &&
|
||||
netutils.IPIsGlobal(conn.Entity.IP) &&
|
||||
conn.Entity.IPScope.IsGlobal() &&
|
||||
conn.Verdict == network.VerdictAccept {
|
||||
// try to tunnel
|
||||
err := sluice.AwaitRequest(pkt.Info(), conn.Entity.Domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue