diff --git a/PSql/_Data/SqlContext.cs b/PSql/_Data/SqlContext.cs index 029d778..6586266 100644 --- a/PSql/_Data/SqlContext.cs +++ b/PSql/_Data/SqlContext.cs @@ -511,12 +511,12 @@ private protected virtual void return mode switch { - // ( ENCRYPT, VERIFY ) - EncryptionMode.None => ( false, false ), - EncryptionMode.Unverified => ( true, false ), - EncryptionMode.Full => ( true, true ), - // EncryptionMode.Default ↓↓ ( !GetIsLocal(), true ), - _ => ( !GetIsLocal(), true ), + // ( ENCRYPT, VERIFY ) + EncryptionMode.None => ( false, false ), + EncryptionMode.Unverified => ( true, false ), + EncryptionMode.Full => ( true, true ), + EncryptionMode.Default when IsLocal => ( false, false ), + _ => ( true, true ), }; }