Skip to content

Commit

Permalink
Merge pull request #12072 from tangcong/automated-cherry-pick-of-#120…
Browse files Browse the repository at this point in the history
…66-origin-release-3.4

Automated cherry pick of #12066
  • Loading branch information
gyuho authored Jun 25, 2020
2 parents 2212a84 + e42d7b5 commit a4f4294
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etcdmain/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ func startGateway(cmd *cobra.Command, args []string) {
}

for _, srv := range srvs.SRVs {
eaddrs, err := net.LookupHost(srv.Target)
var eaddrs []string
eaddrs, err = net.LookupHost(srv.Target)
if err != nil {
fmt.Println("failed to resolve endpoint host:", srv.Target)
os.Exit(1)
Expand Down

0 comments on commit a4f4294

Please sign in to comment.