Make "fakeHost" option working (#1040)

This commit is contained in:
makin 2022-11-11 12:37:09 +01:00 committed by GitHub
parent 4ca8523b88
commit 85264bcb95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ module.exports = function (client, options) {
function next () {
let taggedHost = options.host
if (client.tagHost) taggedHost += client.tagHost
if (client.fakeHost) taggedHost = options.fakeHost
if (options.fakeHost) taggedHost = options.fakeHost
client.write('set_protocol', {
protocolVersion: options.protocolVersion,