mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
Merge pull request #207 from DuckSoft/master
kcp: removing annoying NewAEADAESGCMBasedOnSeed hint
This commit is contained in:
commit
14c80ec2e1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user