mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29: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
|
// check conn type
|
||||||
switch conn.Scope {
|
switch conn.Scope {
|
||||||
case network.IncomingHost, network.IncomingLAN, network.IncomingInternet, network.IncomingInvalid:
|
case network.IncomingLAN, network.IncomingInternet, network.IncomingInvalid:
|
||||||
if p.BlockInbound() {
|
if p.BlockInbound() {
|
||||||
if conn.Scope == network.IncomingHost {
|
if conn.Scope == network.IncomingHost {
|
||||||
conn.Block("inbound connections blocked")
|
conn.Block("inbound connections blocked")
|
||||||
|
|
|
@ -326,7 +326,7 @@ Examples:
|
||||||
err = config.Register(&config.Option{
|
err = config.Register(&config.Option{
|
||||||
Name: "Block Inbound Connections",
|
Name: "Block Inbound Connections",
|
||||||
Key: CfgOptionBlockInboundKey,
|
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,
|
Order: cfgOptionBlockInboundOrder,
|
||||||
OptType: config.OptTypeInt,
|
OptType: config.OptTypeInt,
|
||||||
ExternalOptType: "security level",
|
ExternalOptType: "security level",
|
||||||
|
|
Loading…
Add table
Reference in a new issue