(c *caddy.Controller)
| 87 | } |
| 88 | |
| 89 | func parseForward(c *caddy.Controller) ([]*Forward, error) { |
| 90 | var fs = []*Forward{} |
| 91 | for c.Next() { |
| 92 | f, err := parseStanza(c) |
| 93 | if err != nil { |
| 94 | return nil, err |
| 95 | } |
| 96 | fs = append(fs, f) |
| 97 | } |
| 98 | return fs, nil |
| 99 | } |
| 100 | |
| 101 | // Splits the zone, preserving any port that comes after the zone |
| 102 | func splitZone(host string) (newHost string, zone string) { |
searching dependent graphs…