Fixed the WebRTC connection for Safari

master
WolverinDEV 2021-05-17 22:53:03 +02:00
parent 3b1153cf5b
commit f064d6f4b1
2 changed files with 8 additions and 1 deletions

View File

@ -1061,11 +1061,17 @@ export class RTCConnection {
private handleLocalIceCandidate(candidate: RTCIceCandidate | undefined) {
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")) {
logTrace(LogCategory.WEBRTC, tr("Skipping local fqdn ICE candidate %s"), candidate.toJSON().candidate);
return;
}
this.localCandidateCount++;
const json = candidate.toJSON();
logTrace(LogCategory.WEBRTC, tr("Received local ICE candidate %s"), json.candidate);

View File

@ -372,6 +372,7 @@ export const config = async (env: any, target: "web" | "client"): Promise<Config
liveReload: false,
inline: false,
host: "0.0.0.0",
https: process.env["serve_https"] === "1"
},
};