Skip to content

Commit 62b620c

Browse files
committed
[*] impove share screen website
1 parent 652465e commit 62b620c

File tree

5 files changed

+411
-43
lines changed

5 files changed

+411
-43
lines changed

lib/wrtc/CLAUDE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/wrtc/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
fork [xiu](https://github.com/harlanc/xiu)
1+
Fork [xiu](https://github.com/harlanc/xiu)
2+
3+
[Turn Server Test](https://turndemo.metered.ca/)

lib/wrtc/src/session.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,13 @@ impl WebRTCServerSession {
226226
.as_ref()
227227
.map(|q| SecretCarrier::Query(q.to_string()))
228228
});
229-
auth.authenticate(&token_carrier)?;
229+
230+
if let Err(e) = auth.authenticate(&token_carrier) {
231+
self.send_response(&Self::gen_response(http::StatusCode::UNAUTHORIZED))
232+
.await?;
233+
234+
return Err(SessionError::AuthError(e));
235+
}
230236
}
231237

232238
match ty.to_lowercase().as_str() {

0 commit comments

Comments
 (0)