Merge pull request #31 from roblabla/patch-1

Change encryption-enabled option to encryption.
This commit is contained in:
Andrew Kelley 2013-01-29 10:44:05 -08:00
commit 9c12b6d3d3

View File

@ -31,7 +31,7 @@ function createServer(options) {
var checkTimeoutInterval = options.checkTimeoutInterval || 4 * 1000;
var motd = options.motd || "A Minecraft server";
var onlineMode = options['online-mode'] == null ? true : options['online-mode'];
var encryptionEnabled = options['enable-encryption'] == null ? true : options['enable-encryption'];
var encryptionEnabled = options['encryption'] == null ? true : options['encryption'];
var serverKey = ursa.generatePrivateKey(1024);