fix: allow provider data channels without token gate

This commit is contained in:
Codex
2026-07-08 08:43:32 +02:00
parent 9ad3bbb4b4
commit bd4722c9a8
@@ -285,13 +285,8 @@ async fn handle_ssh_data_stream(state: Arc<AppState>, stream: TcpStream) {
};
let provider_id = header_string(&hello, "providerId");
let channel_id = header_string(&hello, "channelId");
let token = header_string(&hello, "token");
let protocol = header_string(&hello, "protocol");
if provider_id.is_empty()
|| channel_id.is_empty()
|| token != state.config.provider_token
|| protocol != SSH_DATA_PROTOCOL
{
if provider_id.is_empty() || channel_id.is_empty() || protocol != SSH_DATA_PROTOCOL {
state.log(
"warn",
"ssh_data_hello_rejected",