From f4c54d71f70a1196a32895bd9603b11988f128e2 Mon Sep 17 00:00:00 2001 From: luying Date: Sat, 6 Feb 2021 16:59:11 +0800 Subject: [PATCH] rollback server.ts --- game-server/config/servers.ts | 97 ++++++++++++++++------------------- 1 file changed, 44 insertions(+), 53 deletions(-) diff --git a/game-server/config/servers.ts b/game-server/config/servers.ts index 89210127d..7f270589e 100644 --- a/game-server/config/servers.ts +++ b/game-server/config/servers.ts @@ -3,145 +3,136 @@ module.exports = { 'connector': [ { 'id': 'connector-server-1', - 'host': '192.168.1.136', + 'host': '127.0.0.1', 'port': 4050, - 'clientHost': '192.168.1.136', + 'clientHost': '127.0.0.1', 'clientPort': 3050, 'frontend': true, 'args': '--inspect=10001' - }, - { - 'id': 'connector-server-2', - 'host': '192.168.1.136', - 'port': 4051, - 'clientHost': '192.168.1.136', - 'clientPort': 3052, - 'frontend': true, - 'args': '--inspect=10002' } ], 'chat': [ - {'id': 'chat-server-1', 'host': '192.168.1.136', 'port': 6050, "args": " --inspect=9237"} + {'id': 'chat-server-1', 'host': '127.0.0.1', 'port': 6050, "args": " --inspect=9237"} ], 'role': [ - {'id': 'role-server-1', 'host': '192.168.1.136', 'port': 6053, "args": " --inspect=9229"} + {'id': 'role-server-1', 'host': '127.0.0.1', 'port': 6053, "args": " --inspect=9229"} ], 'battle': [ - {'id': 'battle-server-1', 'host': '192.168.1.136', 'port': 6054, "args": " --inspect=9238"} + {'id': 'battle-server-1', 'host': '127.0.0.1', 'port': 6054, "args": " --inspect=9238"} ], 'gm': [ - {'id': 'gm-server-1', 'host': '192.168.1.136', 'port': 6055,"args": " --inspect=9234"} + {'id': 'gm-server-1', 'host': '127.0.0.1', 'port': 6055,"args": " --inspect=9234"} ], 'gate': [ { 'id': 'gate-server-1', - 'host': '192.168.1.136', - 'clientHost': '192.168.1.136', + 'host': '127.0.0.1', + 'clientHost': '127.0.0.1', 'clientPort': 3014, 'frontend': true, "args": " --inspect=9235" }, { 'id': 'gate-server-2', - 'host': '192.168.1.136', - 'clientHost': '192.168.1.136', + 'host': '127.0.0.1', + 'clientHost': '127.0.0.1', 'clientPort': 3015, 'frontend': true, "args": " --inspect=9236" } ], 'systimer': [ - {'id': 'systimer-server-1', 'host': '192.168.1.136', 'port': 6056, "args": " --inspect=9233"} + {'id': 'systimer-server-1', 'host': '127.0.0.1', 'port': 6056, "args": " --inspect=9233"} ] }, 'production': { 'connector': [ - {'id': 'connector-server-1', 'port': 4050, 'clientHost': 'pinus_test.trgame.cn', 'host': '192.168.1.136', 'clientPort': 3050, 'frontend': true}, - {'id': 'connector-server-2', 'port': 4051, 'clientHost': 'pinus_test.trgame.cn', 'host': '192.168.1.136', 'clientPort': 3051, 'frontend': true}, - {'id': 'connector-server-3', 'port': 4052, 'clientHost': 'pinus_test.trgame.cn', 'host': '192.168.1.136', 'clientPort': 3052, 'frontend': true} + {'id': 'connector-server-1', 'port': 4050, 'clientHost': 'pinus_test.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3050, 'frontend': true}, + {'id': 'connector-server-2', 'port': 4051, 'clientHost': 'pinus_test.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3051, 'frontend': true}, + {'id': 'connector-server-3', 'port': 4052, 'clientHost': 'pinus_test.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3052, 'frontend': true} ], 'chat': [ {'id': 'chat-server-1', 'host': '127.0.0.1', 'port': 6050}, ], 'role': [ - {'id': 'role-server-1', 'host': '192.168.1.136', 'port': 6053} + {'id': 'role-server-1', 'host': '127.0.0.1', 'port': 6053} ], 'battle': [ - {'id': 'battle-server-1', 'host': '192.168.1.136', 'port': 6054} + {'id': 'battle-server-1', 'host': '127.0.0.1', 'port': 6054} ], 'gate': [ - {'id': 'gate-server-1', 'host': '192.168.1.136', 'clientHost': 'pinus_test.trgame.cn', 'clientPort': 3014, 'frontend': true}, + {'id': 'gate-server-1', 'host': '127.0.0.1', 'clientHost': 'pinus_test.trgame.cn', 'clientPort': 3014, 'frontend': true}, { 'id': 'gate-server-2', - 'host': '192.168.1.136', + 'host': '127.0.0.1', 'clientHost': 'pinus_test.trgame.cn', 'clientPort': 3015, 'frontend': true } ], 'gm': [ - {'id': 'gm-server-1', 'host': '192.168.1.136', 'port': 6055} + {'id': 'gm-server-1', 'host': '127.0.0.1', 'port': 6055} ], 'systimer': [ - {'id': 'systimer-server-1', 'host': '192.168.1.136', 'port': 6056} + {'id': 'systimer-server-1', 'host': '127.0.0.1', 'port': 6056} ] }, 'alpha': { 'connector': [ - {'id': 'connector-server-1', 'port': 4050, 'clientHost': 'zyz_web.trgame.cn', 'host': '192.168.1.136', 'clientPort': 3050, 'frontend': true}, - {'id': 'connector-server-2', 'port': 4051, 'clientHost': 'zyz_web.trgame.cn', 'host': '192.168.1.136', 'clientPort': 3051, 'frontend': true}, - {'id': 'connector-server-3', 'port': 4052, 'clientHost': 'zyz_web.trgame.cn', 'host': '192.168.1.136', 'clientPort': 3052, 'frontend': true} + {'id': 'connector-server-1', 'port': 4050, 'clientHost': 'zyz_web.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3050, 'frontend': true}, + {'id': 'connector-server-2', 'port': 4051, 'clientHost': 'zyz_web.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3051, 'frontend': true}, + {'id': 'connector-server-3', 'port': 4052, 'clientHost': 'zyz_web.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3052, 'frontend': true} ], 'chat': [ - {'id': 'chat-server-1', 'host': '192.168.1.136', 'port': 6050}, - {'id': 'chat-server-2', 'host': '192.168.1.136', 'port': 6051}, - {'id': 'chat-server-3', 'host': '192.168.1.136', 'port': 6052} + {'id': 'chat-server-1', 'host': '127.0.0.1', 'port': 6050}, + {'id': 'chat-server-2', 'host': '127.0.0.1', 'port': 6051}, + {'id': 'chat-server-3', 'host': '127.0.0.1', 'port': 6052} ], 'role': [ - {'id': 'role-server-1', 'host': '192.168.1.136', 'port': 6053} + {'id': 'role-server-1', 'host': '127.0.0.1', 'port': 6053} ], 'battle': [ - {'id': 'battle-server-1', 'host': '192.168.1.136', 'port': 6054} + {'id': 'battle-server-1', 'host': '127.0.0.1', 'port': 6054} ], 'gate': [ - {'id': 'gate-server-1', 'host': '192.168.1.136', 'clientHost': 'zyz_web.trgame.cn', 'clientPort': 3014, 'frontend': true}, + {'id': 'gate-server-1', 'host': '127.0.0.1', 'clientHost': 'zyz_web.trgame.cn', 'clientPort': 3014, 'frontend': true}, { 'id': 'gate-server-2', - 'host': '192.168.1.136', + 'host': '127.0.0.1', 'clientHost': 'zyz_web.trgame.cn', 'clientPort': 3015, 'frontend': true } ], 'gm': [ - {'id': 'gm-server-1', 'host': '192.168.1.136', 'port': 6055} + {'id': 'gm-server-1', 'host': '127.0.0.1', 'port': 6055} ], 'systimer': [ - {'id': 'systimer-server-1', 'host': '192.168.1.136', 'port': 6056} + {'id': 'systimer-server-1', 'host': '127.0.0.1', 'port': 6056} ] }, 'dev': { 'connector': [ - {'id': 'connector-server-1', 'port': 4050, 'clientHost': 'zyzdev.trgame.cn', 'host': '192.168.1.136', 'clientPort': 3050, 'frontend': true, "args": " --inspect=9237"}, - {'id': 'connector-server-2', 'port': 4051, 'clientHost': 'zyzdev.trgame.cn', 'host': '192.168.1.136', 'clientPort': 3051, 'frontend': true, "args": " --inspect=9229"}, - {'id': 'connector-server-3', 'port': 4052, 'clientHost': 'zyzdev.trgame.cn', 'host': '192.168.1.136', 'clientPort': 3052, 'frontend': true, "args": " --inspect=9238"} + {'id': 'connector-server-1', 'port': 4050, 'clientHost': 'zyzdev.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3050, 'frontend': true, "args": " --inspect=9237"}, + {'id': 'connector-server-2', 'port': 4051, 'clientHost': 'zyzdev.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3051, 'frontend': true, "args": " --inspect=9229"}, + {'id': 'connector-server-3', 'port': 4052, 'clientHost': 'zyzdev.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3052, 'frontend': true, "args": " --inspect=9238"} ], 'chat': [ - {'id': 'chat-server-1', 'host': '192.168.1.136', 'port': 6050,"args": " --inspect=9234"}, - {'id': 'chat-server-2', 'host': '192.168.1.136', 'port': 6051,"args": " --inspect=9235"}, - {'id': 'chat-server-3', 'host': '192.168.1.136', 'port': 6052,"args": " --inspect=9236"} + {'id': 'chat-server-1', 'host': '127.0.0.1', 'port': 6050,"args": " --inspect=9234"}, + {'id': 'chat-server-2', 'host': '127.0.0.1', 'port': 6051,"args": " --inspect=9235"}, + {'id': 'chat-server-3', 'host': '127.0.0.1', 'port': 6052,"args": " --inspect=9236"} ], 'role': [ - {'id': 'role-server-1', 'host': '192.168.1.136', 'port': 6053,"args": " --inspect=9231"} + {'id': 'role-server-1', 'host': '127.0.0.1', 'port': 6053,"args": " --inspect=9231"} ], 'battle': [ - {'id': 'battle-server-1', 'host': '192.168.1.136', 'port': 6054,"args": " --inspect=9230"} + {'id': 'battle-server-1', 'host': '127.0.0.1', 'port': 6054,"args": " --inspect=9230"} ], 'gate': [ - {'id': 'gate-server-1', 'host': '192.168.1.136', 'clientHost': 'zyzdev.trgame.cn', 'clientPort': 3014, 'frontend': true,"args": " --inspect=9227"}, + {'id': 'gate-server-1', 'host': '127.0.0.1', 'clientHost': 'zyzdev.trgame.cn', 'clientPort': 3014, 'frontend': true,"args": " --inspect=9227"}, { 'id': 'gate-server-2', - 'host': '192.168.1.136', + 'host': '127.0.0.1', 'clientHost': 'zyzdev.trgame.cn', 'clientPort': 3015, 'frontend': true, @@ -149,10 +140,10 @@ module.exports = { } ], 'gm': [ - {'id': 'gm-server-1', 'host': '192.168.1.136', 'port': 6055,"args": " --inspect=9232"} + {'id': 'gm-server-1', 'host': '127.0.0.1', 'port': 6055,"args": " --inspect=9232"} ], 'systimer': [ - {'id': 'systimer-server-1', 'host': '192.168.1.136', 'port': 6056, "args": " --inspect=9233"} + {'id': 'systimer-server-1', 'host': '127.0.0.1', 'port': 6056, "args": " --inspect=9233"} ] } };