fix: allow provider data channels without token gate
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user