Skip to content

Commit

Permalink
client: use domain instead of address for request
Browse files Browse the repository at this point in the history
  • Loading branch information
inciner8r committed Apr 12, 2024
1 parent fda83c7 commit dd31fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func RegisterClient(c *gin.Context) {
httpo.NewErrorResponse(http.StatusInternalServerError, err.Error()).SendD(c)
return
}
contractReq, err := http.NewRequest(http.MethodPost, node.Address+"/api/v1.0/client", bytes.NewReader(dataBytes))
contractReq, err := http.NewRequest(http.MethodPost, node.Domain+"/api/v1.0/client", bytes.NewReader(dataBytes))
if err != nil {
logwrapper.Errorf("failed to create request: %s", err)
httpo.NewErrorResponse(http.StatusInternalServerError, err.Error()).SendD(c)
Expand Down

0 comments on commit dd31fb6

Please sign in to comment.