fix hard coded URL, add proxmox URL to config

This commit is contained in:
2025-02-11 07:11:05 +00:00
parent b86034ae8f
commit d44bd48858
4 changed files with 10 additions and 15 deletions

View File

@@ -28,7 +28,7 @@ func Run() {
log.Println("Initialized config from " + *configPath)
token := fmt.Sprintf(`%s@%s!%s`, config.PVE.Token.USER, config.PVE.Token.REALM, config.PVE.Token.ID)
client = NewClient(token, config.PVE.Token.Secret)
client = NewClient(config.PVE.URL, token, config.PVE.Token.Secret)
router := gin.Default()