Core networking

Fix default endpoint creation

Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>