Fixed proxy port validation