Skip to content

Commit

Permalink
Merge pull request #57 from xervon/normalize-fix
Browse files Browse the repository at this point in the history
use NormalizeExact instead of Normalize
  • Loading branch information
denis-tingaikin authored Aug 20, 2024
2 parents 6aa8454 + 1769625 commit 3cd285d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ func parseFanout(c *caddy.Controller) (*Fanout, error) {

func parsefanoutStanza(c *caddyfile.Dispenser) (*Fanout, error) {
f := New()
if !c.Args(&f.from) {
if !c.NextArg() {
return f, c.ArgErr()
}
f.from = plugin.Host(f.from).Normalize()
f.from = plugin.Host(c.Val()).NormalizeExact()[0]
to := c.RemainingArgs()
if len(to) == 0 {
return f, c.ArgErr()
Expand Down

0 comments on commit 3cd285d

Please sign in to comment.