{"action":"created","issue":{"url":"https://api.github.com/repos/pgte/nock/issues/324","labels_url":"https://api.github.com/repos/pgte/nock/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/pgte/nock/issues/324/comments","events_url":"https://api.github.com/repos/pgte/nock/issues/324/events","html_url":"https://github.com/pgte/nock/issues/324","id":83874229,"number":324,"title":"connections not disabled by default","user":{"login":"afeld","id":86842,"avatar_url":"https://avatars.githubusercontent.com/u/86842?v=3","gravatar_id":"","url":"https://api.github.com/users/afeld","html_url":"https://github.com/afeld","followers_url":"https://api.github.com/users/afeld/followers","following_url":"https://api.github.com/users/afeld/following{/other_user}","gists_url":"https://api.github.com/users/afeld/gists{/gist_id}","starred_url":"https://api.github.com/users/afeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afeld/subscriptions","organizations_url":"https://api.github.com/users/afeld/orgs","repos_url":"https://api.github.com/users/afeld/repos","events_url":"https://api.github.com/users/afeld/events{/privacy}","received_events_url":"https://api.github.com/users/afeld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-02T06:45:50Z","updated_at":"2015-06-03T14:46:30Z","closed_at":"2015-06-03T14:46:05Z","body":"Per [the README](https://github.com/pgte/nock#read-this-2---about-enablenetconnect),\r\n\r\n> By the time you require nock, it will disable all HTTP requests, except for the ones that you specifically create a nock scope for.\r\n\r\nbut running\r\n\r\n```javascript\r\nvar nock = require('nock');\r\nvar https = require('https');\r\nhttps.get('https://www.google.com/', function(res) {\r\n  console.log(res.statusCode);\r\n  process.exit();\r\n}).on('error', function(e) {\r\n  console.log(\"Got error: \" + e.message);\r\n});\r\n```\r\n\r\nprints `200`. Adding `nock.disableNetConnect()` after the first line gives me what I expect:\r\n\r\n```\r\nGot error: Nock: Not allow net connect for \"google.com:443/\"\r\n```\r\n\r\nAm I missing something?"},"comment":{"url":"https://api.github.com/repos/pgte/nock/issues/comments/108464950","html_url":"https://github.com/pgte/nock/issues/324#issuecomment-108464950","issue_url":"https://api.github.com/repos/pgte/nock/issues/324","id":108464950,"user":{"login":"pgte","id":47910,"avatar_url":"https://avatars.githubusercontent.com/u/47910?v=3","gravatar_id":"","url":"https://api.github.com/users/pgte","html_url":"https://github.com/pgte","followers_url":"https://api.github.com/users/pgte/followers","following_url":"https://api.github.com/users/pgte/following{/other_user}","gists_url":"https://api.github.com/users/pgte/gists{/gist_id}","starred_url":"https://api.github.com/users/pgte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgte/subscriptions","organizations_url":"https://api.github.com/users/pgte/orgs","repos_url":"https://api.github.com/users/pgte/repos","events_url":"https://api.github.com/users/pgte/events{/privacy}","received_events_url":"https://api.github.com/users/pgte/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T14:46:30Z","updated_at":"2015-06-03T14:46:30Z","body":"@afeld sorry, you were right.\r\n\r\nFixed."}}