diff options
| author | Jeff Carr <[email protected]> | 2025-09-22 18:54:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-22 18:54:37 -0500 |
| commit | c62c11341dd879e54289e239d1249ff8e4bc9040 (patch) | |
| tree | bbdfa378d9104dfa4a1965093f39f19878aaaa89 /common.go | |
| parent | 6a205dfa4e3f217e3317509911ddc812a8ef49f6 (diff) | |
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ var ErrorEmptyDomainName error = errors.New("domain name is empty") var ErrorDomainNameMisconfigured error = errors.New("your OS domain name is not configured correctly") // returns 'hostname', 'domainname' -func Split(s string) (string, string) { +func SplitOld(s string) (string, string) { parts := strings.Fields(s) if len(parts) == 0 { return "", "" @@ -24,7 +24,7 @@ func Split(s string) (string, string) { // checks to make sure there is a domainname func ValidDomainname(s string) error { - _, domainname := Split(s) + _, domainname := SplitOld(s) if domainname == "" { return ErrorEmptyDomainName } |
