test
This commit is contained in:
parent
0ba398a381
commit
74213afac3
3
main.go
3
main.go
@ -207,6 +207,9 @@ func main() {
|
|||||||
ID64, _ := strconv.ParseInt(r.ReplaceAllString(sp.Output, "${ClientID}"), 10, 32)
|
ID64, _ := strconv.ParseInt(r.ReplaceAllString(sp.Output, "${ClientID}"), 10, 32)
|
||||||
clt.ClientID = uint32(ID64)
|
clt.ClientID = uint32(ID64)
|
||||||
clt.Name = r.ReplaceAllString(sp.Output, "${Name}")
|
clt.Name = r.ReplaceAllString(sp.Output, "${Name}")
|
||||||
|
if clt.Name == "" {
|
||||||
|
clt.Name = "server"
|
||||||
|
}
|
||||||
ID64, _ = strconv.ParseInt(r.ReplaceAllString(sp.Output, "${CompanyID}"), 10, 8)
|
ID64, _ = strconv.ParseInt(r.ReplaceAllString(sp.Output, "${CompanyID}"), 10, 8)
|
||||||
clt.CompanyID = uint8(ID64)
|
clt.CompanyID = uint8(ID64)
|
||||||
clt.Address = r.ReplaceAllString(sp.Output, "${Address}")
|
clt.Address = r.ReplaceAllString(sp.Output, "${Address}")
|
||||||
|
Loading…
Reference in New Issue
Block a user