From 738045e14e005e2ac32ebbc3439c9e5bf708edc7 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Tue, 20 Feb 2024 15:31:45 -0500 Subject: [PATCH] prudp: rename IsSecureEndpoint to IsSecureEndPoint for accuracy --- prudp_endpoint.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prudp_endpoint.go b/prudp_endpoint.go index 30389fd..196be3a 100644 --- a/prudp_endpoint.go +++ b/prudp_endpoint.go @@ -29,7 +29,7 @@ type PRUDPEndPoint struct { ServerAccount *Account AccountDetailsByPID func(pid *types.PID) (*Account, *Error) AccountDetailsByUsername func(username string) (*Account, *Error) - IsSecureEndpoint bool + IsSecureEndPoint bool } // RegisterServiceProtocol registers a NEX service with the endpoint @@ -323,7 +323,7 @@ func (pep *PRUDPEndPoint) handleConnect(packet PRUDPPacketInterface) { payload := make([]byte, 0) - if pep.IsSecureEndpoint { + if pep.IsSecureEndPoint { var decryptedPayload []byte if pep.Server.PRUDPV0Settings.EncryptedConnect { decryptedPayload, err = connection.StreamSettings.EncryptionAlgorithm.Decrypt(packet.Payload()) @@ -739,6 +739,6 @@ func NewPRUDPEndPoint(streamID uint8) *PRUDPEndPoint { connectionEndedEventHandlers: make([]func(connection *PRUDPConnection), 0), errorEventHandlers: make([]func(err *Error), 0), ConnectionIDCounter: NewCounter[uint32](0), - IsSecureEndpoint: false, + IsSecureEndPoint: false, } }