proxy: Relax endpoint check (#6503)

## Problem

http-over-sql allowes host to be in format api.aws.... however it's not
the case for the websocket flow.

## Summary of changes

Relax endpoint check for the ws serverless connections.
This commit is contained in:
Anna Khanova
2024-01-28 22:27:14 +01:00
committed by GitHub
parent 3a82430432
commit 8253cf1931
3 changed files with 18 additions and 15 deletions
+2
View File
@@ -41,6 +41,8 @@ use tokio_util::sync::CancellationToken;
use tracing::{error, info, info_span, warn, Instrument};
use utils::http::{error::ApiError, json::json_response};
pub const SERVERLESS_DRIVER_SNI: &str = "api";
pub async fn task_main(
config: &'static ProxyConfig,
ws_listener: TcpListener,