mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Change BlockInbound to only affect LAN and Internet
This commit is contained in:
parent
c3ca0c4c84
commit
635d5770d1
2 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ func checkConnectionType(conn *network.Connection, _ packet.Packet) bool {
|
|||
|
||||
// check conn type
|
||||
switch conn.Scope {
|
||||
case network.IncomingHost, network.IncomingLAN, network.IncomingInternet, network.IncomingInvalid:
|
||||
case network.IncomingLAN, network.IncomingInternet, network.IncomingInvalid:
|
||||
if p.BlockInbound() {
|
||||
if conn.Scope == network.IncomingHost {
|
||||
conn.Block("inbound connections blocked")
|
||||
|
|
|
@ -326,7 +326,7 @@ Examples:
|
|||
err = config.Register(&config.Option{
|
||||
Name: "Block Inbound Connections",
|
||||
Key: CfgOptionBlockInboundKey,
|
||||
Description: "Connections initiated towards your device. This will usually only be the case if you are running a network service or are using peer to peer software.",
|
||||
Description: "Connections initiated towards your device from the LAN or Internet. This will usually only be the case if you are running a network service or are using peer to peer software.",
|
||||
Order: cfgOptionBlockInboundOrder,
|
||||
OptType: config.OptTypeInt,
|
||||
ExternalOptType: "security level",
|
||||
|
|
Loading…
Add table
Reference in a new issue