You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/conn.js
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,6 @@ export class Conn extends RTCPeerConnection {
48
48
ice_pwd,
49
49
mung =true,
50
50
timeout =10_000,
51
-
starter =['::ffff:255.255.255.255',65535],
52
51
...config
53
52
}={}){
54
53
constcert=config?.cert??default_cert;
@@ -84,7 +83,6 @@ export class Conn extends RTCPeerConnection {
84
83
console.error(e);
85
84
this.close();
86
85
});
87
-
if(starter)this.addIceCandidate(starter);
88
86
}
89
87
90
88
asyncaddIceCandidate(candidate){
@@ -163,7 +161,7 @@ export class Conn extends RTCPeerConnection {
163
161
'a=group:BUNDLE dc',
164
162
`a=fingerprint:${to_fingerprint(this.pid)}`,
165
163
`a=ice-ufrag:${to_string(this.pid)}`,
166
-
// TODO: ice-pwd needs to be different per connection I want to prefix it with to_string(this.#cert) but that means need_cert would need to be called before setRemoteDescription and thus mung must always be true and manual certs must always be provided...
164
+
// TODO: ice-pwd would need to be unique if you do broadcasting. One option: ice_pwd + to_string(this.cert) for theirs and ice_pwd + to_string(this.pid) for ours.
0 commit comments