mirror of https://bitbucket.org/ausocean/av.git
Added handling of av_len = 0 etc in C_SocksSetup
This commit is contained in:
parent
cfe7689e31
commit
e9fc1927b3
|
@ -591,6 +591,10 @@ func C_SocksSetup(r *C.RTMP, sockshost *C.AVal) {
|
|||
}
|
||||
r.Link.socksport = C.ushort(value)
|
||||
}
|
||||
} else {
|
||||
r.Link.sockshost.av_val = nil
|
||||
r.Link.sockshost.av_len = 0
|
||||
r.Link.socksport = 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue