don't allow links to be used with --net=host

Fixes #5835