Skip to content

Commit 19e3b6f

Browse files
committed
typo
Change-Id: Ifbaff049826ef5b88dfe5c1a2df2d31178412022
1 parent cb2e189 commit 19e3b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/lookup_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (r *Resolver) lookupPort(ctx context.Context, network, service string) (int
209209
hints.Protocol = syscall.IPPROTO_TCP
210210
case "udp", "udp4", "udp6":
211211
hints.Socktype = syscall.SOCK_DGRAM
212-
hints.Protocol = syscall.IPPROTO.UDP
212+
hints.Protocol = syscall.IPPROTO_UDP
213213
default:
214214
return 0, &DNSError{Err: "unknown network", Name: network + "/" + service}
215215
}

0 commit comments

Comments
 (0)