chore: remove debug logging

This commit is contained in:
Jonathan Barrow 2024-04-08 16:09:43 -04:00
parent 50325cf7c2
commit 491b475a9c
No known key found for this signature in database
GPG Key ID: E86E9FE9049C741F
2 changed files with 0 additions and 21 deletions

View File

@ -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)

View File

@ -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()