Skip to content

Commit

Permalink
proxy: fix typos in comments
Browse files Browse the repository at this point in the history
Change-Id: I7091af7efe71d46a0f55fd8341afcaa76073adaf
Reviewed-on: https://go-review.googlesource.com/71630
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
joekyo authored and bradfitz committed Oct 19, 2017
1 parent 1087133 commit aabf507
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion proxy/per_host.go
Expand Up @@ -61,7 +61,7 @@ func (p *PerHost) dialerForRequest(host string) Dialer {
return p.bypass
}
if host == zone[1:] {
// For a zone "example.com", we match "example.com"
// For a zone ".example.com", we match "example.com"
// too.
return p.bypass
}
Expand Down
4 changes: 2 additions & 2 deletions proxy/socks5.go
Expand Up @@ -12,7 +12,7 @@ import (
)

// SOCKS5 returns a Dialer that makes SOCKSv5 connections to the given address
// with an optional username and password. See RFC 1928 and 1929.
// with an optional username and password. See RFC 1928 and RFC 1929.
func SOCKS5(network, addr string, auth *Auth, forward Dialer) (Dialer, error) {
s := &socks5{
network: network,
Expand Down Expand Up @@ -60,7 +60,7 @@ var socks5Errors = []string{
"address type not supported",
}

// Dial connects to the address addr on the network net via the SOCKS5 proxy.
// Dial connects to the address addr on the given network via the SOCKS5 proxy.
func (s *socks5) Dial(network, addr string) (net.Conn, error) {
switch network {
case "tcp", "tcp6", "tcp4":
Expand Down

0 comments on commit aabf507

Please sign in to comment.