Re-arranged the code so that it's not trying to create more than one deproxy on the same port.
Merge pull request #3 from izrik/B-54671

B-54671