Add nock's disableNetConnect/enableNetConnect functions
Merge pull request #3232 from Nemo157/nock_disable_enable

Add nock's disableNetConnect/enableNetConnect functions