fix hard coded URL, add proxmox URL to config

This commit is contained in:
Arthur Lu
2025-01-28 00:48:53 +00:00
parent 58cf403d26
commit 3cea9f6bcd
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()