mirror of
https://github.com/lwch/natpass
synced 2025-10-06 22:02:44 +08:00
增加log
This commit is contained in:
@@ -31,6 +31,13 @@ func newClient(parent *Handler, id string, conn *network.Conn) *client {
|
|||||||
func (c *client) run() {
|
func (c *client) run() {
|
||||||
for {
|
for {
|
||||||
if time.Since(c.updated).Seconds() > 600 {
|
if time.Since(c.updated).Seconds() > 600 {
|
||||||
|
links := make([]string, 0, len(c.links))
|
||||||
|
c.RLock()
|
||||||
|
for id := range c.links {
|
||||||
|
links = append(links, id)
|
||||||
|
}
|
||||||
|
c.RUnlock()
|
||||||
|
logging.Info("%s is not keepalived, links: %v", c.id, links)
|
||||||
c.parent.closeAll(c)
|
c.parent.closeAll(c)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user