bring kcp over vp8 (#160)
* bring kcp over vp8 for wbstream * add multitrack kcp * make kcp configurable param * fix lingered kcp tunnel after switch into raw vp8 tunnel * add reliable setting into ios and desktop joiners
This commit is contained in:
1 parent
99e5630f19
commit
a0229885ca
50 files changed
+1503
-96
No files matched your search
@@ -111,9 +111,13 @@ func main() {
|
||||
}
|
||||
bridgeReadBuf := common.VP8BufSize
|
||||
mode := "video"
|
||||
if _, ok := tun.(*tunnel.DCTunnel); ok {
|
||||
switch tun.(type) {
|
||||
case *tunnel.DCTunnel:
|
||||
bridgeReadBuf = readBuf
|
||||
mode = "dc"
|
||||
case *tunnel.MultiTrackKCPTunnel:
|
||||
bridgeReadBuf = readBuf
|
||||
mode = "video+kcp"
|
||||
}
|
||||
activeBridge = tunnel.NewRelayBridge(tun, "creator", bridgeReadBuf, log.Printf)
|
||||
activeBridge.SetUpstreamSocks(*upstreamSocks, *upstreamUser, *upstreamPass)
|
||||
|
||||
Reference in new issue
Block a user