mirror of
https://github.com/jkstack/libagent.git
synced 2025-12-24 12:11:57 +08:00
@@ -99,7 +99,8 @@ func (app *app) waitHandshake(conn *websocket.Conn, timeout time.Duration) error
|
||||
if !msg.Handshake.OK {
|
||||
return errors.New(msg.Handshake.Msg)
|
||||
}
|
||||
if len(msg.Handshake.ID) > 0 {
|
||||
if len(msg.Handshake.ID) > 0 && msg.Handshake.ID != app.a.Configure().ID {
|
||||
logging.Info("agent_id reset rewrite configure file...")
|
||||
app.a.Configure().SetAgentID(msg.Handshake.ID)
|
||||
app.a.OnRewriteConfigure()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user