diff --git a/modules/server/profile/profile.go b/modules/server/profile/profile.go index cbf48b94d565d5fb0805324944055c385f0c3d07..479845f6d27343d6ab21fc89dbc029a0815dd12a 100644 --- a/modules/server/profile/profile.go +++ b/modules/server/profile/profile.go @@ -881,6 +881,10 @@ func (s *ProfileServer) Tuning(stream PB.ProfileMgr_TuningServer) error { UpgradeProfile method update the db file */ func (s *ProfileServer) UpgradeProfile(profileInfo *PB.ProfileInfo, stream PB.ProfileMgr_UpgradeProfileServer) error { + if config.TransProtocol == "tcp" { + return fmt.Errorf("the upgrade command cannot be executed through TCP connections.") + } + isLocalAddr, err := SVC.CheckRpcIsLocalAddr(stream.Context()) if err != nil { return err