From f8429b92c9ad6e191507cc9162f30fb722aaa531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Sun, 6 May 2018 12:50:43 +0200 Subject: [PATCH] refactor --- bin/unleash.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/unleash.js b/bin/unleash.js index b33badc736..5b43a88fe4 100755 --- a/bin/unleash.js +++ b/bin/unleash.js @@ -32,10 +32,9 @@ const argv = require('yargs') serverImpl .start(argv) .then(instance => { + const address = instance.server.address(); console.log( - `Unleash started on http://${instance.server.address().address}:${ - instance.server.address().port - }` + `Unleash started on http://${address.address}:${address.port}` ); }) .catch(console.err);