Skip to content

Commit

Permalink
Add TODO comment for removing preferIPv6Addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-james-dev committed Jul 18, 2023
1 parent 2f453e3 commit 9774f84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/java_http/lib/src/java_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class JavaClient extends BaseClient {
if (!Platform.isAndroid) {
Jni.spawnIfNotExists(dylibDir: join('build', 'jni_libs'));
}

// TODO: Determine if we can remove this.
// It's a workaround to fix the tests not passing on GitHub CI.
// See https://github.com/dart-lang/http/pull/987#issuecomment-1636170371.
System.setProperty(
'java.net.preferIPv6Addresses'.toJString(), 'true'.toJString());
}
Expand Down

0 comments on commit 9774f84

Please sign in to comment.