diff --git a/src/createClient.js b/src/createClient.js index 83dc1b7..6fb1ba9 100644 --- a/src/createClient.js +++ b/src/createClient.js @@ -90,9 +90,12 @@ function createClient(options) { return client; function onConnect() { + var taggedHost = host; + if (options.forge) taggedHost += '\0FML\0'; + client.write('set_protocol', { protocolVersion: version.version, - serverHost: host, + serverHost: taggedHost, serverPort: port, nextState: 2 });