From 491b475a9ceca3e893cb4179fe6a2858d8a6d788 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Mon, 8 Apr 2024 16:09:43 -0400 Subject: [PATCH] chore: remove debug logging --- nex/authentication.go | 10 ---------- nex/secure.go | 11 ----------- 2 files changed, 21 deletions(-) diff --git a/nex/authentication.go b/nex/authentication.go index 1726425..d02d6f0 100644 --- a/nex/authentication.go +++ b/nex/authentication.go @@ -1,7 +1,6 @@ package nex import ( - "fmt" "os" "strconv" @@ -22,15 +21,6 @@ func StartAuthenticationServer() { globals.AuthenticationEndpoint.AccountDetailsByUsername = globals.AccountDetailsByUsername globals.AuthenticationEndpoint.ServerAccount = nex.NewAccount(types.NewPID(1), "Quazal Authentication", os.Getenv("PN_FRIENDS_CONFIG_AUTHENTICATION_PASSWORD")) - globals.AuthenticationEndpoint.OnData(func(packet nex.PacketInterface) { - request := packet.RMCMessage() - - fmt.Println("==Friends - Auth==") - fmt.Printf("Protocol ID: %#v\n", request.ProtocolID) - fmt.Printf("Method ID: %#v\n", request.MethodID) - fmt.Println("===============") - }) - registerCommonAuthenticationServerProtocols() globals.AuthenticationServer.SetFragmentSize(962) diff --git a/nex/secure.go b/nex/secure.go index 9438bf4..27905c6 100644 --- a/nex/secure.go +++ b/nex/secure.go @@ -1,7 +1,6 @@ package nex import ( - "fmt" "os" "strconv" "time" @@ -27,15 +26,6 @@ func StartSecureServer() { globals.SecureEndpoint.AccountDetailsByUsername = globals.AccountDetailsByUsername globals.SecureEndpoint.ServerAccount = nex.NewAccount(types.NewPID(2), "Quazal Rendez-Vous", os.Getenv("PN_FRIENDS_CONFIG_SECURE_PASSWORD")) - globals.SecureEndpoint.OnData(func(packet nex.PacketInterface) { - request := packet.RMCMessage() - - fmt.Println("==Friends - Secure==") - fmt.Printf("Protocol ID: %#v\n", request.ProtocolID) - fmt.Printf("Method ID: %#v\n", request.MethodID) - fmt.Println("====================") - }) - globals.SecureEndpoint.OnConnectionEnded(func(connection *nex.PRUDPConnection) { pid := connection.PID().LegacyValue() @@ -64,7 +54,6 @@ func StartSecureServer() { } delete(globals.ConnectedUsers, pid) - fmt.Println("Leaving (Kick)") }) registerCommonSecureServerProtocols()