Add script for fast deployment

This commit is contained in:
9seconds
2019-11-18 10:49:03 +03:00
parent 6dce3944e4
commit b6251608d9
3 changed files with 74 additions and 7 deletions
+2 -7
View File
@@ -174,13 +174,8 @@ func Init(options ...Opt) error { // nolint: gocyclo, funlen
}
if C.CloakHost != "" {
addrs, err := net.LookupHost(C.CloakHost)
if err != nil {
return fmt.Errorf("cannot resolve address of %s host: %w", C.CloakHost, err)
}
if len(addrs) == 0 {
return fmt.Errorf("no known ip addresses for the host %s", C.CloakHost)
if _, err := net.LookupHost(C.CloakHost); err != nil {
zap.S().Warnw("Cannot resolve address of host", "hostname", C.CloakHost, "error", err)
}
}