public key bug and multiuser enhancement and server ip support and config file of client optimization

This commit is contained in:
刘河
2019-03-26 23:34:55 +08:00
parent 00a4a33c5f
commit 42a73fa392
22 changed files with 155 additions and 70 deletions

View File

@@ -228,7 +228,13 @@ loop:
}
func (s *TRPClient) Close() {
s.tunnel.Close()
s.signal.Close()
s.ticker.Stop()
if s.tunnel != nil {
s.tunnel.Close()
}
if s.signal != nil {
s.signal.Close()
}
if s.ticker != nil {
s.ticker.Stop()
}
}