mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-10 22:56:11 +08:00
增加重连功能,可动态修改连接参数
This commit is contained in:
@@ -296,6 +296,17 @@ func CloseSess(token string) {
|
||||
sess.CSess.Close()
|
||||
}
|
||||
|
||||
func CloseCSess(token string) {
|
||||
sessMux.Lock()
|
||||
defer sessMux.Unlock()
|
||||
sess, ok := sessions[token]
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
sess.CSess.Close()
|
||||
}
|
||||
|
||||
func DelSessByStoken(stoken string) {
|
||||
stoken = strings.TrimSpace(stoken)
|
||||
sarr := strings.Split(stoken, "@")
|
||||
|
Reference in New Issue
Block a user