瀏覽代碼

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

Ryan Huber 5 年之前
父節點
當前提交
a91a40212d
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      inside.go

+ 5 - 0
inside.go

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