mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-07 00:50:27 +00:00
feat: support tcp protocol on android (#903)
This commit is contained in:
1 file changed
+3
-2
@@ -762,7 +762,7 @@ class SettingView extends GetView<SettingController> {
|
||||
width: 80,
|
||||
child: DropdownButtonFormField<String>(
|
||||
value: startCfg.value.network,
|
||||
onChanged: Util.isDesktop()
|
||||
onChanged: Util.isDesktop() || Util.isAndroid()
|
||||
? (value) async {
|
||||
startCfg.update((val) {
|
||||
val!.network = value!;
|
||||
@@ -786,7 +786,8 @@ class SettingView extends GetView<SettingController> {
|
||||
),
|
||||
)
|
||||
];
|
||||
if (Util.isDesktop() && startCfg.value.network == 'tcp') {
|
||||
if ((Util.isDesktop() || Util.isAndroid()) &&
|
||||
startCfg.value.network == 'tcp') {
|
||||
final arr = startCfg.value.address.split(':');
|
||||
var ip = '127.0.0.1';
|
||||
var port = '0';
|
||||
|
||||
Reference in new issue
Block a user