checkproxy should call proxyon/proxyoff functions.