From 474abf4c89c2ebe8e8d07ee6d9bd88fb363c6955 Mon Sep 17 00:00:00 2001 From: 3405691582 Date: Mon, 14 Sep 2026 19:36:56 +0000 Subject: [PATCH] Allow delegate flags to be wired up. These are not wired up yet, but if the default file is modified, the operator init script will pass the necessary path to set the config delegate. --- .../debian/cuttlefish-user.cuttlefish-operator.default | 8 ++++++++ frontend/debian/cuttlefish-user.cuttlefish-operator.init | 3 +++ 2 files changed, 11 insertions(+) diff --git a/frontend/debian/cuttlefish-user.cuttlefish-operator.default b/frontend/debian/cuttlefish-user.cuttlefish-operator.default index e093c8b3c21..0c3d46605e8 100644 --- a/frontend/debian/cuttlefish-user.cuttlefish-operator.default +++ b/frontend/debian/cuttlefish-user.cuttlefish-operator.default @@ -22,3 +22,11 @@ operator_https_port=1443 # else, it uses web pages which is generated during the build # Defaults to "" # operator_webui_url= +# +# Path to an executable that prints an InfraConfig JSON object on stdout, +# used to obtain ICE servers (STUN/TURN) at runtime. +# The operator falls back to the static configuration if the executable is +# missing, fails, or produces output that does not parse. +# Empty means no delegate is used. +# Defaults to "" +# operator_infra_config_delegate= diff --git a/frontend/debian/cuttlefish-user.cuttlefish-operator.init b/frontend/debian/cuttlefish-user.cuttlefish-operator.init index fb756f734a2..d97995bb539 100755 --- a/frontend/debian/cuttlefish-user.cuttlefish-operator.init +++ b/frontend/debian/cuttlefish-user.cuttlefish-operator.init @@ -86,6 +86,9 @@ start() { if [[ -n "${operator_listen_address}" ]]; then args+=(--listen_addr="${operator_listen_address}") fi + if [[ -n "${operator_infra_config_delegate}" ]]; then + args+=(--infra_config_delegate="${operator_infra_config_delegate}") + fi start-stop-daemon --start \ --pidfile "${PIDFILE}" \