Skip to content

Commit

Permalink
Make socket address obvious
Browse files Browse the repository at this point in the history
We don't need a valid http host for the nginx api when we use a socket.
The host is ignored. This change makes it more obvious that the host is
unnecessary.
  • Loading branch information
isaac authored and isaachawley committed Aug 29, 2018
1 parent d2c4f38 commit 9eb9325
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nginx-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ func main() {
if *nginxPlus {
time.Sleep(500 * time.Millisecond)
httpClient := getSocketClient()
apiURL := fmt.Sprintf("http:https://127.0.0.1:%v/api", *nginxStatusPort)
nginxAPI, err = plus.NewNginxAPIController(&httpClient, apiURL, local)
nginxAPI, err = plus.NewNginxAPIController(&httpClient, "http:https://nginx-plus-api/api", local)
if err != nil {
glog.Fatalf("Failed to create NginxAPIController: %v", err)
}
Expand Down

0 comments on commit 9eb9325

Please sign in to comment.