mirror of
https://github.com/PretendoNetwork/nex-go.git
synced 2025-04-02 11:02:14 -04:00
prudp: rename IsSecureEndpoint to IsSecureEndPoint for accuracy
This commit is contained in:
parent
15672fd981
commit
738045e14e
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue