This commit is contained in:
shoopea 2020-06-21 19:08:21 +02:00
parent 0ba398a381
commit 74213afac3

View File

@ -207,6 +207,9 @@ func main() {
ID64, _ := strconv.ParseInt(r.ReplaceAllString(sp.Output, "${ClientID}"), 10, 32)
clt.ClientID = uint32(ID64)
clt.Name = r.ReplaceAllString(sp.Output, "${Name}")
if clt.Name == "" {
clt.Name = "server"
}
ID64, _ = strconv.ParseInt(r.ReplaceAllString(sp.Output, "${CompanyID}"), 10, 8)
clt.CompanyID = uint8(ID64)
clt.Address = r.ReplaceAllString(sp.Output, "${Address}")