mirror of
https://github.com/MarekWojt/gertdns.git
synced 2026-04-27 15:04:15 +02:00
save records, fix . problem, extend readme
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package util
|
||||
|
||||
import "strings"
|
||||
|
||||
func ParseDomain(domain string) string {
|
||||
if !strings.HasSuffix(domain, ".") {
|
||||
return domain + "."
|
||||
}
|
||||
|
||||
return domain
|
||||
}
|
||||
Reference in New Issue
Block a user