Add org id in the status

This commit is contained in:
Owen
2025-11-03 20:54:55 -08:00
parent 690b133c7b
commit da1e4911bd
2 changed files with 13 additions and 1 deletions

View File

@@ -110,6 +110,7 @@ func Run(ctx context.Context, config Config) {
}
apiServer.SetVersion(config.Version)
apiServer.SetOrgID(config.OrgID)
if err := apiServer.Start(); err != nil {
logger.Fatal("Failed to start HTTP server: %v", err)
}
@@ -755,6 +756,7 @@ func Run(ctx context.Context, config Config) {
if apiServer != nil {
apiServer.SetRegistered(false)
apiServer.SetTunnelIP("")
apiServer.SetOrgID(config.OrgID)
}
// Trigger re-registration with new orgId