{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/24543","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/24543/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/24543/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/24543/events","html_url":"https://github.com/nodejs/node/issues/24543","id":382981522,"node_id":"MDU6SXNzdWUzODI5ODE1MjI=","number":24543,"title":"createConnection option not work for https module","user":{"login":"yibopi","id":24615390,"node_id":"MDQ6VXNlcjI0NjE1Mzkw","avatar_url":"https://avatars0.githubusercontent.com/u/24615390?v=4","gravatar_id":"","url":"https://api.github.com/users/yibopi","html_url":"https://github.com/yibopi","followers_url":"https://api.github.com/users/yibopi/followers","following_url":"https://api.github.com/users/yibopi/following{/other_user}","gists_url":"https://api.github.com/users/yibopi/gists{/gist_id}","starred_url":"https://api.github.com/users/yibopi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yibopi/subscriptions","organizations_url":"https://api.github.com/users/yibopi/orgs","repos_url":"https://api.github.com/users/yibopi/repos","events_url":"https://api.github.com/users/yibopi/events{/privacy}","received_events_url":"https://api.github.com/users/yibopi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-21T06:57:41Z","updated_at":"2018-11-27T22:06:30Z","closed_at":null,"author_association":"NONE","body":"Version: v10.13.0\r\nPlatform: Linux 4.15.0-39-generic x86_64\r\n\r\nI am trying to use the createConnection option in the https module to set the client local port (localPort=34567 in the example below), but this only works when port = 80, not when port = 443. Following is the code I used to test. Does it mean that https module cannot set a custom socket for https in this way? Thanks.\r\n\r\n```\r\nconst https = require('https');\r\nconst url = require('url');\r\n\r\nvar req = https.get({\r\n    host: 'google.com',\r\n    pathname: '/',\r\n    port: 443,   // works when equal to 80, but not 443\r\n    family: 4,\r\n    localPort: 34567,\r\n    createConnection: require('net').createConnection\r\n}, function(res) {\r\n    console.log('localPort:', req.socket.localPort, \"remotePort:\", req.socket.remotePort);\r\n});\r\n\r\nreq.on('error', console.error);\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/442235599","html_url":"https://github.com/nodejs/node/issues/24543#issuecomment-442235599","issue_url":"https://api.github.com/repos/nodejs/node/issues/24543","id":442235599,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjIzNTU5OQ==","user":{"login":"eecs441staff","id":43324101,"node_id":"MDQ6VXNlcjQzMzI0MTAx","avatar_url":"https://avatars1.githubusercontent.com/u/43324101?v=4","gravatar_id":"","url":"https://api.github.com/users/eecs441staff","html_url":"https://github.com/eecs441staff","followers_url":"https://api.github.com/users/eecs441staff/followers","following_url":"https://api.github.com/users/eecs441staff/following{/other_user}","gists_url":"https://api.github.com/users/eecs441staff/gists{/gist_id}","starred_url":"https://api.github.com/users/eecs441staff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eecs441staff/subscriptions","organizations_url":"https://api.github.com/users/eecs441staff/orgs","repos_url":"https://api.github.com/users/eecs441staff/repos","events_url":"https://api.github.com/users/eecs441staff/events{/privacy}","received_events_url":"https://api.github.com/users/eecs441staff/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T22:06:30Z","updated_at":"2018-11-27T22:06:30Z","author_association":"NONE","body":"@cjihrig It worked! Thanks."}}
{"actor":{"display_login":"eecs441staff"}}