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

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

python - ValueError: could not convert string to float -

php - Laravel Get all child node count with condition -