From 67afa4a3985a096b4cbb3c237eb358962ee739c4 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 13 Aug 2012 21:29:05 -0400 Subject: [PATCH] proxy: fix wrong function name in comment R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/6459055 --- proxy/per_host.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxy/per_host.go b/proxy/per_host.go index 0c627e9a..d3f2a609 100644 --- a/proxy/per_host.go +++ b/proxy/per_host.go @@ -30,7 +30,7 @@ func NewPerHost(defaultDialer, bypass Dialer) *PerHost { } } -// Dial connects to the address addr on the network net through either +// Dial connects to the address addr on the given network through either // defaultDialer or bypass. func (p *PerHost) Dial(network, addr string) (c net.Conn, err error) { host, _, err := net.SplitHostPort(addr) @@ -112,9 +112,9 @@ func (p *PerHost) AddIP(ip net.IP) { p.bypassIPs = append(p.bypassIPs, ip) } -// AddIP specifies an IP range that will use the bypass proxy. Note that this -// will only take effect if a literal IP address is dialed. A connection to a -// named host will never match. +// AddNetwork specifies an IP range that will use the bypass proxy. Note that +// this will only take effect if a literal IP address is dialed. A connection +// to a named host will never match. func (p *PerHost) AddNetwork(net *net.IPNet) { p.bypassNetworks = append(p.bypassNetworks, net) }