From 2e28054c007102c68be932a8bde99f7de5a417f9 Mon Sep 17 00:00:00 2001 From: Justin T <37750742+jtieri@users.noreply.github.com> Date: Tue, 3 Dec 2019 21:13:18 -0600 Subject: [PATCH] update main.go update --- habbgo/main.go | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/habbgo/main.go b/habbgo/main.go index 660ab06..9fd81f5 100644 --- a/habbgo/main.go +++ b/habbgo/main.go @@ -3,19 +3,14 @@ package main import ( "github.com/jtieri/HabbGo/habbgo/server" "github.com/jtieri/HabbGo/habbgo/utils" + "log" ) func main() { - //log.Println(encoding.DecodeVl64([]byte{'@','A'})) - //buffer := bytes.Buffer{} - //packet := packets.IncomingPacket{"@@", 1, buffer} - //packet.Payload.Write([]byte{'h','e','l','l','o'}) - //log.Println(string(packet.Bytes())) - //log.Println(packet.Payload.String()) - - + //log.Println(string(encoding.EncodeB64(6, 3))) + log.Println("Booting up HabbGo... ") config := utils.LoadConfig() - gameServer := server.New(config.Server.Port, config.Server.Host) + gameServer := server.New(config.Server.Port, config.Server.Host, config.Server.MaxConns) gameServer.Start() defer gameServer.Stop() }