Quick fix for people entering a huge port number for proxy settings
More advanced fixes that could be done later include validating the port number when the user inputs it and showing an error for invalid ports. However, since there's at least one user who already has an invalid port in their settings, we need this fix here anyway to heal this.