Skip to content

Commit

Permalink
remove code accidentally committed
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Oct 28, 2024
1 parent d4b7251 commit d14a9d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ func (p Proxy) getNewToken(w http.ResponseWriter, r *http.Request) error {

func (p Proxy) getTokenFromAPI(ipAddress string) string {
client := &http.Client{Timeout: time.Second * 10}
req, err := http.NewRequest("GET", "http://172.17.0.1:53050"+p.TokenPath, nil) // FIXME: DO NOT COMMIT THIS
// req, err := http.NewRequest("GET", p.ManagementAPI+p.TokenPath, nil)
req, err := http.NewRequest("GET", p.ManagementAPI+p.TokenPath, nil)
if err != nil {
p.log.Error("error creating management API request", zap.Error(err))
return ""
Expand Down

0 comments on commit d14a9d1

Please sign in to comment.