1
0
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:
Darien Raymond
2016-09-25 22:19:49 +02:00
parent ce5bc72f0c
commit c6a7389817
3 changed files with 27 additions and 14 deletions

View File

@@ -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 {