1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00
This commit is contained in:
Darien Raymond
2017-01-03 01:37:27 +01:00
parent 84978a501d
commit 1e5061f15e
5 changed files with 11 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ func (v *Account) GetCipher() (Cipher, error) {
return &AesCfb{KeyBytes: 32}, nil
case CipherType_CHACHA20:
return &ChaCha20{IVBytes: 8}, nil
case CipherType_CHACHA20_IEFT:
case CipherType_CHACHA20_IETF:
return &ChaCha20{IVBytes: 12}, nil
default:
return nil, errors.New("Unsupported cipher.")