From a94d6f9271854d2de9fa0be9993e5f1e4c1f4976 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 20 Mar 2023 00:24:47 +0000 Subject: [PATCH] Actually bind to whichever port. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4239 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/android/com/unprompted/tildefriends/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/com/unprompted/tildefriends/MainActivity.java b/src/android/com/unprompted/tildefriends/MainActivity.java index 960bd633..ff0e3004 100644 --- a/src/android/com/unprompted/tildefriends/MainActivity.java +++ b/src/android/com/unprompted/tildefriends/MainActivity.java @@ -116,7 +116,7 @@ public class MainActivity extends Activity { }).start(); String exe = getFilesDir().toString() + "/tildefriends"; - ProcessBuilder builder = new ProcessBuilder(exe, "run", "-z", getPackageResourcePath().toString(), "-a", "out_http_port_file=" + port_file_path); + ProcessBuilder builder = new ProcessBuilder(exe, "run", "-z", getPackageResourcePath().toString(), "-a", "out_http_port_file=" + port_file_path, "-p", "0"); Log.w("tildefriends", "files = " + getFilesDir().toString()); Log.w("tildefriends", "exe = " + exe); builder.directory(getFilesDir());