kcp: removing annoying NewAEADAESGCMBasedOnSeed hint

pull/2744/head
DuckSoft 2020-09-20 17:47:15 +08:00
parent df2d296ffc
commit 9def692b21
No known key found for this signature in database
GPG Key ID: 7A3A9FA6E4FD4A8D
1 changed files with 0 additions and 3 deletions

View File

@ -4,8 +4,6 @@ package kcp
import ( import (
"crypto/cipher" "crypto/cipher"
"fmt"
"v2ray.com/core/common" "v2ray.com/core/common"
"v2ray.com/core/transport/internet" "v2ray.com/core/transport/internet"
) )
@ -63,7 +61,6 @@ func (c *Config) GetReadBufferSize() uint32 {
// GetSecurity returns the security settings. // GetSecurity returns the security settings.
func (c *Config) GetSecurity() (cipher.AEAD, error) { func (c *Config) GetSecurity() (cipher.AEAD, error) {
if c.Seed != nil { if c.Seed != nil {
fmt.Println("=========NewAEADAESGCMBasedOnSeed Used============")
return NewAEADAESGCMBasedOnSeed(c.Seed.Seed), nil return NewAEADAESGCMBasedOnSeed(c.Seed.Seed), nil
} }
return NewSimpleAuthenticator(), nil return NewSimpleAuthenticator(), nil