Change BlockInbound to only affect LAN and Internet
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user