diff --git a/app/lib/utils/uri_parser.dart b/app/lib/utils/uri_parser.dart index 78de5944..9183f16f 100644 --- a/app/lib/utils/uri_parser.dart +++ b/app/lib/utils/uri_parser.dart @@ -40,7 +40,7 @@ Uri? tryParseUrl(String? input, {bool eagerParsing = false}) { if (_domainRegex.hasMatch(firstSegment)) { uri = Uri.tryParse('https://$input')?.replace(port: port); } else if (firstSegment == 'localhost') { - uri = Uri.tryParse('https://$input')?.replace(port: port); + uri = Uri.tryParse('http://$input')?.replace(port: port); } else if (InternetAddress.tryParse(firstSegment) != null) { uri = Uri.tryParse('https://$input')?.replace(port: port); }