fixing-issue CARBON-15082

If we set the proxyPort = -1 here, then we can get rid of the "if" condition below.