diff --git a/common.c b/common.c index df3c2ca6..05edae98 100644 --- a/common.c +++ b/common.c @@ -114,7 +114,7 @@ uint16_t nextFreeUDPPort() { if (UDPPortIndex == 0) UDPPortIndex = config.udp_port_base; else if (UDPPortIndex == (config.udp_port_base + config.udp_port_range - 1)) - UDPPortIndex = config.udp_port_base; + UDPPortIndex = config.udp_port_base + 3; // avoid wrapping back to the first three, as they can be assigned by resetFreeUDPPort without checking else UDPPortIndex++; return UDPPortIndex;