mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-05 16:55:27 -05:00
refine cipher settings
This commit is contained in:
@@ -41,12 +41,15 @@ func NewServer(config *ServerConfig, space app.Space, meta *proxy.InboundHandler
|
||||
if _, err := config.GetUser().GetTypedAccount(account); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cipher := account.GetCipher()
|
||||
cipher, err := account.GetCipher()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
s := &Server{
|
||||
config: config,
|
||||
meta: meta,
|
||||
cipher: cipher,
|
||||
cipherKey: account.GetCipherKey(cipher.KeySize()),
|
||||
cipherKey: account.GetCipherKey(),
|
||||
}
|
||||
|
||||
space.InitializeApplication(func() error {
|
||||
|
||||
Reference in New Issue
Block a user