Skip to content

Commit

Permalink
fix(#24): use relative URL for WHEP connection resource
Browse files Browse the repository at this point in the history
  • Loading branch information
birme authored and Wkkkkk committed Jul 4, 2023
1 parent 3e7b127 commit ed67a11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/routes/whep_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ pub async fn subscribe(
.await
.context("Failed to receive a whip offer")?;

let whep_port = app_state.get_port();
let url = format!("http://localhost:{}/channel/{}", whep_port, connection_id);
let url = format!("/channel/{}", connection_id);
tracing::info!("Receiving streaming from: {}", url);

Ok(HttpResponse::Created()
Expand Down
3 changes: 1 addition & 2 deletions src/routes/whip_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ pub async fn whip_request(
.await
.context("Failed to receive a whep offer")?;

let whep_port = app_state.get_port();
let url = format!("http://localhost:{}/channel/{}", whep_port, connection_id);
let url = format!("/channel/{}", connection_id);
tracing::info!("Start streaming at: {}", url);

Ok(HttpResponse::Ok()
Expand Down

0 comments on commit ed67a11

Please sign in to comment.