From bd32ecbc7154fc40958600044b037ae370a3a08b Mon Sep 17 00:00:00 2001 From: Eric Severance Date: Fri, 10 Jan 2025 15:38:14 -0800 Subject: [PATCH] Use an ephemeral port for the API server --- .clusterfuzzlite/router_fuzzer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.clusterfuzzlite/router_fuzzer.cpp b/.clusterfuzzlite/router_fuzzer.cpp index d5f248bfb..bc4d248db 100644 --- a/.clusterfuzzlite/router_fuzzer.cpp +++ b/.clusterfuzzlite/router_fuzzer.cpp @@ -137,8 +137,8 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) meshtasticThread = std::thread([program = *argv[0]]() { char nodeIdStr[12]; strcpy(nodeIdStr, std::to_string(nodeId).c_str()); - int argc = 5; - char *argv[] = {program, "-d", "/tmp/meshtastic", "-h", nodeIdStr, nullptr}; + int argc = 7; + char *argv[] = {program, "-d", "/tmp/meshtastic", "-h", nodeIdStr, "-p", "0", nullptr}; try { portduino_main(argc, argv); } catch (const ShouldExitException &) {