Merge pull request #12072 from tangcong/automated-cherry-pick-of-#12066-origin-release-3.4

Automated cherry pick of #12066
This commit is contained in:
Gyuho Lee 2020-06-24 20:39:15 -07:00 committed by GitHub
commit a4f42948e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)