From 0d67c86c63ebf27625c684556d83faad7dffb2b5 Mon Sep 17 00:00:00 2001 From: lwch Date: Wed, 10 Aug 2022 15:25:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9OnRewriteConfigure=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_net.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app_net.go b/app_net.go index 1c4f424..23270d9 100644 --- a/app_net.go +++ b/app_net.go @@ -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() }