Fixed the WebRTC connection for Safari
This commit is contained in:
parent
3b1153cf5b
commit
f064d6f4b1
2 changed files with 8 additions and 1 deletions
|
@ -1061,11 +1061,17 @@ export class RTCConnection {
|
||||||
|
|
||||||
private handleLocalIceCandidate(candidate: RTCIceCandidate | undefined) {
|
private handleLocalIceCandidate(candidate: RTCIceCandidate | undefined) {
|
||||||
if(candidate) {
|
if(candidate) {
|
||||||
|
/*
|
||||||
|
* Even if we're only offering local candidates we still should count them else we might
|
||||||
|
* get an candidate finish without any candidates (which should never happen).
|
||||||
|
* An example for this would be safari.
|
||||||
|
*/
|
||||||
|
this.localCandidateCount++;
|
||||||
|
|
||||||
if(candidate.address?.endsWith(".local")) {
|
if(candidate.address?.endsWith(".local")) {
|
||||||
logTrace(LogCategory.WEBRTC, tr("Skipping local fqdn ICE candidate %s"), candidate.toJSON().candidate);
|
logTrace(LogCategory.WEBRTC, tr("Skipping local fqdn ICE candidate %s"), candidate.toJSON().candidate);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.localCandidateCount++;
|
|
||||||
|
|
||||||
const json = candidate.toJSON();
|
const json = candidate.toJSON();
|
||||||
logTrace(LogCategory.WEBRTC, tr("Received local ICE candidate %s"), json.candidate);
|
logTrace(LogCategory.WEBRTC, tr("Received local ICE candidate %s"), json.candidate);
|
||||||
|
|
|
@ -372,6 +372,7 @@ export const config = async (env: any, target: "web" | "client"): Promise<Config
|
||||||
liveReload: false,
|
liveReload: false,
|
||||||
inline: false,
|
inline: false,
|
||||||
|
|
||||||
|
host: "0.0.0.0",
|
||||||
https: process.env["serve_https"] === "1"
|
https: process.env["serve_https"] === "1"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue