Skip to content

Commit

Permalink
Use pointer receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie committed Jan 25, 2022
1 parent 65163e5 commit 56bb162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/reverseproxy/upstreams.go
Expand Up @@ -340,7 +340,7 @@ type UpstreamResolver struct {

// ParseAddresses parses all the configured network addresses
// and ensures they're ready to be used.
func (u UpstreamResolver) ParseAddresses() error {
func (u *UpstreamResolver) ParseAddresses() error {
for _, v := range u.Addresses {
addr, err := caddy.ParseNetworkAddress(v)
if err != nil {
Expand Down

0 comments on commit 56bb162

Please sign in to comment.