prevent use of proxy if option is disabled