not tested either but the code looks fine.
i would also add a check when changing settings to disallow setting the same ports in the first place.
not tested either but the code looks fine.
i would also add a check when changing settings to disallow setting the same ports in the first place.