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