remove wbstream dc support

This commit is contained in:
kulikov0 committed 2026-05-16 14:06:24 +02:00
1 parent f8f76eb1ce
commit d7800f6328
9 files changed
+44 -58

No files matched your search

+2 -8
View File
@@ -106,14 +106,8 @@ func main() {
if activeBridge != nil {
activeBridge.Reset()
}
bridgeReadBuf := common.VP8BufSize
mode := "video"
if _, ok := tun.(*tunnel.DCTunnel); ok {
bridgeReadBuf = readBuf
mode = "dc"
}
activeBridge = tunnel.NewRelayBridge(tun, "creator", bridgeReadBuf, log.Printf)
fmt.Printf("\n TUNNEL CONNECTED mode=%s\n", mode)
activeBridge = tunnel.NewRelayBridge(tun, "creator", common.VP8BufSize, log.Printf)
fmt.Printf("\n TUNNEL CONNECTED\n")
}
sess.OnPeerRestart = func() {
if activeBridge != nil {