This hopefully fixes WS issues on environment with multiple networks such as Docker Swarm.
mentioned in commit 73c1db5f