avoid clobbering the existing port variable

This commit is contained in:
Brian Gough 2016-05-19 16:23:33 +01:00
parent e286aede4e
commit 07401c5a45

View file

@ -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