playit-cloud / playit-agent

The playit program
BSD 2-Clause "Simplified" License
259 stars 21 forks source link

Fix address lookup for PortType::Both #62

Closed pedorich-n closed 1 year ago

pedorich-n commented 1 year ago

If the port set in the UI is TCP + UDP, then override address lookup fails because proto isn't Both. This should fix the issue. Let me know if there's a better way to achieve this without an additional check.

loriopatrick commented 1 year ago

Good catch, thank you for the fix.