ios proxy pass domains (#527)

This commit is contained in:
wanghongenpin
2026-02-15 01:25:05 +08:00
parent a3e744ee2e
commit c4d3421373
6 changed files with 42 additions and 11 deletions

View File

@@ -280,7 +280,8 @@ class SettingPage extends StatelessWidget {
children: [
Text(localizations.proxyIgnoreDomain, style: const TextStyle(fontSize: 14)),
const SizedBox(height: 3),
Text(isEn ? "Use ';' to separate multiple entries": "多个使用;分割", style: TextStyle(fontSize: 11, color: Colors.grey.shade600)),
Text(isEn ? "Use ';' to separate multiple entries" : "多个使用;分割",
style: TextStyle(fontSize: 11, color: Colors.grey.shade600)),
],
),
Padding(
@@ -299,10 +300,14 @@ class SettingPage extends StatelessWidget {
textInputAction: TextInputAction.done,
style: const TextStyle(fontSize: 13),
controller: textEditingController,
onSubmitted: (_) {
configuration.proxyPassDomains = textEditingController.text;
proxyServer.configuration.flushConfig();
},
decoration: const InputDecoration(
contentPadding: EdgeInsets.all(10),
border: OutlineInputBorder(),
),
contentPadding: EdgeInsets.all(10),
border: OutlineInputBorder(),
),
maxLines: 5,
minLines: 1)),
// const SizedBox(height: 10),

View File

@@ -289,6 +289,10 @@ class _SettingPage extends StatelessWidget {
textInputAction: TextInputAction.done,
style: const TextStyle(fontSize: 13),
controller: textEditingController,
onSubmitted: (_) {
configuration.proxyPassDomains = textEditingController.text;
proxyServer.configuration.flushConfig();
},
decoration: const InputDecoration(
contentPadding: EdgeInsets.all(10),
border: OutlineInputBorder()),