Skip to content

Commit 7301366

Browse files
authored
Merge pull request #90 from pete911/fix-normalize
update deprecated normalize function
2 parents efc2683 + 1a400f8 commit 7301366

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ func parse(c *caddy.Controller) (*Gateway, error) {
5353
}
5454

5555
for i, str := range gw.Zones {
56-
gw.Zones[i] = plugin.Host(str).Normalize()
56+
if host := plugin.Host(str).NormalizeExact(); len(host) != 0 {
57+
gw.Zones[i] = host[0]
58+
}
5759
}
5860

5961
for c.NextBlock() {

0 commit comments

Comments
 (0)