From c1ac2aa577362d35c5bbf014d1ef8c50dba26d3b Mon Sep 17 00:00:00 2001 From: David Fifield Date: Thu, 12 Dec 2024 06:38:50 +0000 Subject: [PATCH] Update comment not to refer to a Stream transport. Stream is not part of this branch. --- client/lib/snowflake.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/lib/snowflake.go b/client/lib/snowflake.go index 35b85ae..ef04f2a 100644 --- a/client/lib/snowflake.go +++ b/client/lib/snowflake.go @@ -330,12 +330,9 @@ func parseIceServers(addresses []string) []webrtc.ICEServer { func newSession(snowflakes SnowflakeCollector) (net.PacketConn, *smux.Session, error) { // We build a persistent KCP session on a sequence of ephemeral WebRTC // connections. This dialContext tells RedialPacketConn how to get a new - // WebRTC connection when the previous one dies. - // If Stream based transport are used, inside each WebRTC connection, - // we use encapsulationPacketConn to encode packets into a - // stream. - // If Packet based transport are used, inside each WebRTC connection, - // packets are sent directly over unreliable data channel. + // WebRTC connection when the previous one dies. Inside each WebRTC + // connection, KCP packets are sent and received, one-to-one, in data + // channel messages. dialContext := func(ctx context.Context) (net.PacketConn, error) { log.Printf("redialing on same connection") // Obtain an available WebRTC remote. May block.