discovery: add command line flag for discovery-proxy