From 0ba398a381de6c3f1973012d79ba1a915811050a Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 21 Jun 2020 19:06:22 +0200 Subject: [PATCH] test --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index b2e5d5e..271d493 100644 --- a/main.go +++ b/main.go @@ -206,7 +206,7 @@ func main() { r, _ := regexp.Compile("Client #(?P[0-9]+) name: '(?P.*)' company: (?P[0-9]+) IP: (?P
.*)") ID64, _ := strconv.ParseInt(r.ReplaceAllString(sp.Output, "${ClientID}"), 10, 32) clt.ClientID = uint32(ID64) - clt.Name = r.ReplaceAllString(sp.Output, "${ClientID}") + clt.Name = r.ReplaceAllString(sp.Output, "${Name}") ID64, _ = strconv.ParseInt(r.ReplaceAllString(sp.Output, "${CompanyID}"), 10, 8) clt.CompanyID = uint8(ID64) clt.Address = r.ReplaceAllString(sp.Output, "${Address}")