Trap empty outgoing proxy ports, close #2203

far from perfect
format