Ver Fonte

check that packet isn't bound for my vpn ip (#192)

Ryan Huber há 5 anos atrás
pai
commit
a91a40212d
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      inside.go

+ 5 - 0
inside.go

@@ -19,6 +19,11 @@ func (f *Interface) consumeInsidePacket(packet []byte, fwPacket *FirewallPacket,
 		return
 	}
 
+	// Ignore packets from self to self
+	if fwPacket.RemoteIP == f.lightHouse.myIp {
+		return
+	}
+
 	// Ignore broadcast packets
 	if f.dropMulticast && isMulticast(fwPacket.RemoteIP) {
 		return