1
0
mirror of https://github.com/golang/go synced 2024-11-17 21:54:49 -07:00

net: make lookupPort case-insensitive on Plan 9

The CL 28951 added TestLookupPort_Minimal, which was failing
on Plan 9, because lookupPort was not case-insensitive.

Change-Id: Ic80dd29dad4ffd1c84c2590e3d5d0e588ab2e6c2
Reviewed-on: https://go-review.googlesource.com/29051
TryBot-Result: Gobot Gobot <gobot@golang.org>
Run-TryBot: David du Colombier <0intro@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
David du Colombier 2016-09-11 23:29:25 +02:00 committed by Brad Fitzpatrick
parent 62ba15a492
commit b8eb5b53ea

View File

@ -170,7 +170,7 @@ func lookupPort(ctx context.Context, network, service string) (port int, err err
case "udp4", "udp6":
network = "udp"
}
lines, err := queryCS(ctx, network, "127.0.0.1", service)
lines, err := queryCS(ctx, network, "127.0.0.1", toLower(service))
if err != nil {
return
}