wire up dion tunneling
This commit is contained in:
1 parent
0643d24aa2
commit
7528f653e9
25 files changed
+662
-147
No files matched your search
@@ -23,8 +23,6 @@ func main() {
|
||||
socksUser := flag.String("socks-user", "", "SOCKS5 username (optional)")
|
||||
socksPass := flag.String("socks-pass", "", "SOCKS5 password (optional)")
|
||||
resources := flag.String("resources", "default", "resource mode: moderate, default, unlimited")
|
||||
vp8FPS := flag.Int("vp8-fps", 24, "VP8 frame rate")
|
||||
vp8Batch := flag.Int("vp8-batch", 30, "VP8 batch multiplier")
|
||||
flag.Parse()
|
||||
|
||||
var memLimit int64
|
||||
@@ -42,7 +40,7 @@ func main() {
|
||||
debug.SetMemoryLimit(memLimit)
|
||||
}
|
||||
common.MaskingEnabled = true
|
||||
log.Printf("[config] resources=%s name=%q vp8 fps=%d batch=%d", *resources, *displayName, *vp8FPS, *vp8Batch)
|
||||
log.Printf("[config] resources=%s name=%q", *resources, *displayName)
|
||||
|
||||
requestedSlug := normalizeRoom(*roomFlag)
|
||||
if requestedSlug == "" {
|
||||
@@ -72,8 +70,7 @@ func main() {
|
||||
Obfuscator: obf,
|
||||
DisplayName: *displayName,
|
||||
LogFn: log.Printf,
|
||||
VP8FPS: *vp8FPS,
|
||||
VP8Batch: *vp8Batch,
|
||||
Role: dion.RoleJoiner,
|
||||
})
|
||||
call.OnConnected = func(tun tunnel.DataTunnel) {
|
||||
if activeBridge != nil {
|
||||
|
||||
Reference in new issue
Block a user