url.Parse typo

This commit is contained in:
鲁晓敏 2015-11-12 19:22:55 +08:00
parent 223dea2c89
commit 8e3d97a171
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ func (g *phpfpm) gatherServer(addr string, acc plugins.Accumulator) error {
fcgiAddr string
)
if strings.HasPrefix(addr, "fcgi://") || strings.HasPrefix(addr, "cgi://") {
u, err := url.Parge(addr)
u, err := url.Parse(addr)
if err != nil {
return fmt.Errorf("Unable parse server address '%s': %s", addr, err)
}