diff --git a/docs/api.md b/docs/api.md index d7d63fc..4fddea3 100644 --- a/docs/api.md +++ b/docs/api.md @@ -473,13 +473,23 @@ Returns the updated dictionary. Starts or stops the local target the card's BIP channel is redirected to. -Dump mode (default) captures whatever the card sends (e.g. its TLS -ClientHello) without answering: +Dump mode captures whatever the card sends (e.g. its TLS ClientHello) +without answering: ```json {"action": "start", "mode": "dump", "host": "127.0.0.1", "port": 8443} ``` +Pass-through mode (`mode: "passthru"`) starts **no local listener**: every BIP +channel the card opens is connected to the configured external platform +(`host`/`port` are required — no defaults), which terminates TLS and runs the +administration dialog; the address the card requests is only logged. The +status API reports `mode: "passthru"` with the target while it runs. + +```json +{"action": "start", "mode": "passthru", "host": "203.0.113.10", "port": 10174} +``` + TLS mode runs the Phase B PSK TLS server (GPC v2.2 Amendment B): the PSK table is applied to the TLS handshake, and the GP HTTP administration dialog (`X-Admin-*` headers, 200 with a command string or 204 No Content) is served. @@ -514,6 +524,11 @@ Stop either mode with `{"action": "stop"}` (also disables the BIP terminal). "identity_seen": "89012345678901234567", "identity_matched": true}} ``` +Listener modes: `tls` (local PSK TLS server), `dump` (capture-only TCP +listener) and `passthru` (no local listener; the BIP channels go straight to +`host:port`, e.g. an external HTTP OTA platform — reported as +`{"mode": "passthru", "host": ..., "port": ..., "target": "host:port"}`). + `psk_identities` lists the identities the listener accepts (keys are never exposed); `psk_wildcard` marks the legacy single-key mode. `identity_seen` / `identity_matched` reflect the last handshake: an unknown identity is logged diff --git a/frontend/help-ru.html b/frontend/help-ru.html index 0b86290..4d126e7 100644 --- a/frontend/help-ru.html +++ b/frontend/help-ru.html @@ -42,7 +42,7 @@

1.1 Интерфейс