javascript - server.address().address is not set when https.createServer() in node -
simple this:
server.address().address blank. why this? can set it?
server = https.createserver(options, app).listen(port, function () { console.log('listening on https://' + server.address().address + ':' + server.address().port); });
which returns
listening on https://:::9804
server.address()
returns
{ address: '::', family: 'ipv6', port: 9804 }
Comments
Post a Comment