Commit b8eb5b53 authored by David du Colombier's avatar David du Colombier Committed by Brad Fitzpatrick

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 62ba15a4
...@@ -170,7 +170,7 @@ func lookupPort(ctx context.Context, network, service string) (port int, err err ...@@ -170,7 +170,7 @@ func lookupPort(ctx context.Context, network, service string) (port int, err err
case "udp4", "udp6": case "udp4", "udp6":
network = "udp" 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 { if err != nil {
return return
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment