mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-08 02:36:37 +08:00
fix: increase kcp tunnel bandwidth limit and fix modal backgrounds
This commit is contained in:
@@ -73,6 +73,9 @@ func (d *kcpDialer) parseMetadata(md mdata.Metadata) (err error) {
|
||||
if md.IsExists("kcp.sndwnd") {
|
||||
d.md.config.SndWnd = mdutil.GetInt(md, "kcp.sndwnd")
|
||||
}
|
||||
if md.IsExists("kcp.sockbuf") {
|
||||
d.md.config.SockBuf = mdutil.GetInt(md, "kcp.sockbuf")
|
||||
}
|
||||
if md.IsExists("kcp.smuxver") {
|
||||
d.md.config.SmuxVer = mdutil.GetInt(md, "kcp.smuxver")
|
||||
}
|
||||
|
||||
@@ -76,6 +76,9 @@ func (l *kcpListener) parseMetadata(md mdata.Metadata) (err error) {
|
||||
if md.IsExists("kcp.sndwnd") {
|
||||
l.md.config.SndWnd = mdutil.GetInt(md, "kcp.sndwnd")
|
||||
}
|
||||
if md.IsExists("kcp.sockbuf") {
|
||||
l.md.config.SockBuf = mdutil.GetInt(md, "kcp.sockbuf")
|
||||
}
|
||||
if md.IsExists("kcp.smuxver") {
|
||||
l.md.config.SmuxVer = mdutil.GetInt(md, "kcp.smuxver")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user