Fixed the WebRTC connection for Safari
parent
3b1153cf5b
commit
f064d6f4b1
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue