diff options
| author | 2024-06-10 07:40:53 +0000 | |
|---|---|---|
| committer | 2024-06-10 07:40:53 +0000 | |
| commit | 3babb6c0d25b635e95de4aa8572bffa1c7273f88 (patch) | |
| tree | 31146a952fb29dd2eb936d35a9289e9e023e6dea /vendor/golang.org/x/net/proxy | |
| parent | [chore]: Bump github.com/minio/minio-go/v7 from 7.0.70 to 7.0.71 (#2988) (diff) | |
| download | gotosocial-3babb6c0d25b635e95de4aa8572bffa1c7273f88.tar.xz | |
[chore]: Bump golang.org/x/net from 0.25.0 to 0.26.0 (#2986)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.25.0 to 0.26.0.
- [Commits](https://github.com/golang/net/compare/v0.25.0...v0.26.0)
---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/golang.org/x/net/proxy')
| -rw-r--r-- | vendor/golang.org/x/net/proxy/per_host.go | 8 | 
1 files changed, 2 insertions, 6 deletions
diff --git a/vendor/golang.org/x/net/proxy/per_host.go b/vendor/golang.org/x/net/proxy/per_host.go index 573fe79e8..d7d4b8b6e 100644 --- a/vendor/golang.org/x/net/proxy/per_host.go +++ b/vendor/golang.org/x/net/proxy/per_host.go @@ -137,9 +137,7 @@ func (p *PerHost) AddNetwork(net *net.IPNet) {  // AddZone specifies a DNS suffix that will use the bypass proxy. A zone of  // "example.com" matches "example.com" and all of its subdomains.  func (p *PerHost) AddZone(zone string) { -	if strings.HasSuffix(zone, ".") { -		zone = zone[:len(zone)-1] -	} +	zone = strings.TrimSuffix(zone, ".")  	if !strings.HasPrefix(zone, ".") {  		zone = "." + zone  	} @@ -148,8 +146,6 @@ func (p *PerHost) AddZone(zone string) {  // AddHost specifies a host name that will use the bypass proxy.  func (p *PerHost) AddHost(host string) { -	if strings.HasSuffix(host, ".") { -		host = host[:len(host)-1] -	} +	host = strings.TrimSuffix(host, ".")  	p.bypassHosts = append(p.bypassHosts, host)  }  | 
