diff --git a/server.go b/server.go index d895acd1..face6584 100644 --- a/server.go +++ b/server.go @@ -66,9 +66,6 @@ func Register(instance, service, domain string, port int, text []string, ifaces if entry.Domain == "" { entry.Domain = "local." } - if entry.Port == 0 { - return nil, fmt.Errorf("missing port") - } var err error if entry.HostName == "" { @@ -127,9 +124,6 @@ func RegisterProxy(instance, service, domain string, port int, host string, ips if entry.Domain == "" { entry.Domain = "local" } - if entry.Port == 0 { - return nil, fmt.Errorf("missing port") - } if !strings.HasSuffix(trimDot(entry.HostName), entry.Domain) { entry.HostName = fmt.Sprintf("%s.%s.", trimDot(entry.HostName), trimDot(entry.Domain))