Drop domain part of host name

This commit is contained in:
Holger Obermaier 2022-01-19 15:35:12 +01:00 committed by Holger Obermaier
parent 38cba10fb6
commit c5e90247df

View File

@ -166,6 +166,8 @@ func main() {
log.Print(err)
return
}
// Drop domain part of host name
host = strings.SplitN(host, `.`, 2)[0]
clicfg := ReadCli()
err = CreatePidfile(clicfg["pidfile"])
err = SetLogging(clicfg["logfile"])