mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
sni
This commit is contained in:
@@ -149,6 +149,7 @@ class _Settings with ChangeNotifier {
|
||||
'dnsOverrides': {},
|
||||
'enableCustomImageProcessing': false,
|
||||
'customImageProcessing': _defaultCustomImageProcessing,
|
||||
'sni': true,
|
||||
};
|
||||
|
||||
operator [](String key) {
|
||||
|
@@ -241,6 +241,9 @@ class RHttpAdapter implements HttpClientAdapter {
|
||||
),
|
||||
throwOnStatusCode: false,
|
||||
dnsSettings: rhttp.DnsSettings.static(overrides: _getOverrides()),
|
||||
tlsSettings: rhttp.TlsSettings(
|
||||
sni: appdata.settings['sni'] != false,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -285,6 +285,10 @@ class __DNSOverridesState extends State<_DNSOverrides> {
|
||||
title: "Enable DNS Overrides".tl,
|
||||
settingKey: "enableDnsOverrides",
|
||||
),
|
||||
_SwitchSetting(
|
||||
title: "Server Name Indication",
|
||||
settingKey: "sni",
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Container(
|
||||
height: 1,
|
||||
|
Reference in New Issue
Block a user