From f8470fc8f6472b03c6ac66a21f04a8a47599da3a Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 23 Jan 2016 12:46:04 -0800 Subject: [PATCH] Use new proxy address formatter --- src/io/backend/iobackend.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/io/backend/iobackend.js b/src/io/backend/iobackend.js index 6b1e0da5..a3371d02 100644 --- a/src/io/backend/iobackend.js +++ b/src/io/backend/iobackend.js @@ -3,6 +3,7 @@ import FrontendManager from './frontendmanager'; import uuid from 'uuid'; import PoolEntryUpdater from 'cytube-common/lib/redis/poolentryupdater'; import JSONProtocol from 'cytube-common/lib/proxy/protocol'; +import { formatProxyAddress } from 'cytube-common/lib/util/addressutil'; const BACKEND_POOL = 'backend-hosts'; @@ -28,8 +29,10 @@ export default class IOBackend { } initBackendPoolUpdater() { + const hostname = this.proxyListenerConfig.getHost(); + const port = this.proxyListenerConfig.getPort(); const entry = { - address: this.proxyListenerConfig.getHost() + '/' + this.proxyListenerConfig.getPort() + address: formatProxyAddress(hostname, port) } this.poolEntryUpdater = new PoolEntryUpdater( this.poolRedisClient,