From 07401c5a451c9b07e89fc19c9a81c340939a21f0 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 19 May 2016 16:23:33 +0100 Subject: [PATCH] avoid clobbering the existing port variable --- services/clsi/app.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/clsi/app.coffee b/services/clsi/app.coffee index 275c6bf0c0..2a8e7b5f37 100644 --- a/services/clsi/app.coffee +++ b/services/clsi/app.coffee @@ -158,8 +158,8 @@ server = net.createServer (socket) -> socket.write("up, #{freeLoadPercentage}%\n", "ASCII") socket.end() -server.listen port = (Settings.internal?.clsi?.load_port or 3044), -> - logger.info "tcp load endpoint listening on port #{port}" +server.listen load_port = (Settings.internal?.clsi?.load_port or 3044), -> + logger.info "tcp load endpoint listening on port #{load_port}" # telnet 127.0.0.1 3044