opts.IPVal returns an error on incorrect input

Signed-off-by: Solomon Hykes <solomon@docker.com>