summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'common.go')
-rw-r--r--common.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.go b/common.go
index ae4b7ff..b22d738 100644
--- a/common.go
+++ b/common.go
@@ -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
}