Simplify hasUserDefinedIPAddress, and centralize validation
Simplify hasUserDefinedIPAddress, and centralize validation

Signed-off-by: Sebastiaan van Stijn <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@gone.nl>

estesp/docker,tmp6154/docker,moby/moby,nawawi/docker,kojiromike/docker,Ramzec/docker,mahak/docker,flavio/docker,djs55/docker,rremer/moby,vdemeester/docker,konstruktoid/docker-upstream,bearstech/moby,thaJeztah/docker,SvenDowideit/docker,crosbymichael/docker,SvenDowideit/docker,yongtang/docker,yongtang/docker,jlhawn/docker,jameszhan/docker,Ramzec/docker,kojiromike/docker,Mokolea/docker,mikebrow/docker,justincormack/docker,konstruktoid/docker-1,jwhonce/docker,unclejack/docker,nawawi/docker,justincormack/docker,bearstech/moby,konstruktoid/docker-upstream,ibuildthecloud/docker,crosbymichael/docker,paralin/docker,dims/docker,gnailuy/docker,SvenDowideit/docker,Mokolea/docker,Ramzec/docker,jimjag/docker,jvanz/docker,mahak/docker,jameszhan/docker,nalind/docker,crosbymichael/docker,justincormack/docker,kolyshkin/moby,docker/docker,docker/docker,yosifkit/docker,pradipd/moby,jlhawn/docker,nalind/docker,jthelin/docker,ibuildthecloud/docker,tmp6154/docker,Mokolea/docker,paralin/docker,ibuildthecloud/docker,jlhawn/docker,kolyshkin/moby,kolyshkin/moby,trebonian/docker,moul/docker,konstruktoid/docker-1,djs55/docker,jvanz/docker,estesp/docker,unclejack/docker,moby/moby,yongtang/docker,vdemeester/docker,konstruktoid/docker-upstream,jimjag/docker,trebonian/docker,jimjag/docker,bearstech/moby,gnailuy/docker,mikebrow/docker,nawawi/docker,mahak/docker,flavio/docker,nawawi/docker,ibuildthecloud/docker,jwhonce/docker,pradipd/moby,paralin/docker,Ramzec/docker,konstruktoid/docker-upstream,cpuguy83/docker,dims/docker,jvanz/docker,mahak/docker,vdemeester/docker,trebonian/docker,cpuguy83/docker,nalind/docker,trebonian/docker,ibuildthecloud/docker,tmp6154/docker,kojiromike/docker,docker/docker,djs55/docker,yosifkit/docker,moul/docker,AkihiroSuda/docker,jthelin/docker,gnailuy/docker,yosifkit/docker,thaJeztah/docker,AkihiroSuda/docker,thaJeztah/docker,bearstech/moby,moul/docker,thaJeztah/docker,flavio/docker,jwhonce/docker,gnailuy/docker,moul/docker,moby/moby,flavio/docker,Mokolea/docker,cpuguy83/docker,yosifkit/docker,moby/moby,pradipd/moby,unclejack/docker,paralin/docker,cpuguy83/docker,mikebrow/docker,AkihiroSuda/docker,estesp/docker,jameszhan/docker,rremer/moby,rremer/moby,konstruktoid/docker-1,AkihiroSuda/docker,dims/docker,jimjag/docker,nalind/docker