mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
commit
a4f42948e8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user