Changed the way the IP was collected to setup Docker Swarm
Created by: crochat
Changed the way the IP address was collected to setup Docker Swarm. Actually, it was the public IP in all cases, which is not always relevent and doesn't work at all in case of a local setup, which could be behind NAT, or on a laptop or whatever...