Skip to content

Commit

Permalink
change admin api address
Browse files Browse the repository at this point in the history
  • Loading branch information
NunuM committed Nov 5, 2023
1 parent 8e81411 commit 70fe62e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/model/api-gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class ApiGateway extends Gateway implements Identifiable {
.withTimeout(1, TimeUnit.Minutes)
.build();

const response = await client.target(`http://localhost:${Config.administration().port}`)
const response = await client.target(`http://127.0.0.1:${Config.administration().port}`)
.path("/api/v1/api-gateway")
.request()
.post(new JsonEntity(this.toJSON()));
Expand Down
2 changes: 1 addition & 1 deletion src/model/virtual-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class VirtualHost extends Gateway implements Identifiable {
}))
.build();

const response = await client.target(`http://localhost:${Config.administration().port}`)
const response = await client.target(`http://127.0.0.1:${Config.administration().port}`)
.path("/api/v1/virtualhost")
.request()
.post(new JsonEntity(this.toJSON()));
Expand Down

0 comments on commit 70fe62e

Please sign in to comment.