fix(xo-server/proxy-console): pass hostname to net.connect

This commit is contained in:
Julien Fontanet 2018-09-20 10:25:47 +02:00
parent 62d48bd59d
commit 5e363761a2

View File

@ -12,7 +12,7 @@ export default function proxyConsole (ws, vmConsole, sessionId) {
const socket = connect( const socket = connect(
{ {
host: url.host, host: url.hostname,
port: url.port || 443, port: url.port || 443,
rejectUnauthorized: false, rejectUnauthorized: false,
}, },