diff --git a/server/http_status.go b/server/http_status.go index 2f31fa4a423d2..e86868325aa0c 100644 --- a/server/http_status.go +++ b/server/http_status.go @@ -477,7 +477,7 @@ func (s *Server) startStatusServerAndRPCServer(serverMux *http.ServeMux) { logutil.BgLogger().Error("tikv store not etcd background", zap.Error(err)) break } - selfAddr := s.statusListener.Addr().String() + selfAddr := s.cfg.AdvertiseAddress service := autoid.New(selfAddr, etcdAddr, store, ebd.TLSConfig()) logutil.BgLogger().Info("register auto service at", zap.String("addr", selfAddr)) pb.RegisterAutoIDAllocServer(grpcServer, service)