strconv.Atoi fix
This commit is contained in:
parent
8e3d97a171
commit
5b2fb16b60
|
@ -129,7 +129,7 @@ func (g *phpfpm) gatherServer(addr string, acc plugins.Accumulator) error {
|
||||||
}
|
}
|
||||||
socketAddr := strings.Split(u.Host, ":")
|
socketAddr := strings.Split(u.Host, ":")
|
||||||
fcgiIp := socketAddr[0]
|
fcgiIp := socketAddr[0]
|
||||||
fcgiPort := strconv.Atoi(socketAddr[1])
|
fcgiPort,_ := strconv.Atoi(socketAddr[1])
|
||||||
fcgiAddr = u.Host
|
fcgiAddr = u.Host
|
||||||
fcgi, _ = NewClient(fcgiIp, fcgiPort)
|
fcgi, _ = NewClient(fcgiIp, fcgiPort)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue