Skip to content

Commit

Permalink
🐞 fix(flv): Change service type
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiyu1998 committed Jan 29, 2024
1 parent c56dd70 commit 9882046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion protocol/httpflv/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ pub async fn run(event_producer: StreamHubEventSender, port: usize) -> Result<()

let handle_connection = handle_connection.with_state(event_producer.clone());

axum::serve(listener, handle_connection.into_make_service()).await?;
axum::serve(
listener,
handle_connection.into_make_service_with_connect_info::<SocketAddr>(),
)
.await?;

Ok(())
}

0 comments on commit 9882046

Please sign in to comment.