Ignore E1.31 data when priority doesn't match #768

This commit is contained in:
mxklb 2022-12-20 00:47:11 +01:00
parent 2278fc4edb
commit 2d1ebbb7cb

View File

@ -90,8 +90,11 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){
} }
#endif #endif
// ignore packages with priority smaller configured port priority // ignore packages by priority
if ( (prio != 0 && e131Priority != 0) && prio < e131Priority ) return; if (prio != 0)
if (e131Priority != 0)
if (prio != e131Priority)
return;
// only listen for universes we're handling & allocated memory // only listen for universes we're handling & allocated memory
if (uni < e131Universe || uni >= (e131Universe + E131_MAX_UNIVERSE_COUNT)) return; if (uni < e131Universe || uni >= (e131Universe + E131_MAX_UNIVERSE_COUNT)) return;