func (m *MatchRemoteIP) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
	for d.Next() {
		for d.NextArg() {
			if d.Val() == "forwarded" {
				if len(m.Ranges) > 0 {
					return d.Err("if used, 'forwarded' must be first argument")
				}
				m.Forwarded = true
				continue
			}
			if d.Val() == "private_ranges" {
				m.Ranges = append(m.Ranges, []string{
					"192.168.0.0/16",
					"172.16.0.0/12",
					"10.0.0.0/8",
					"127.0.0.1/8",
					"fd00::/8",
					"::1",
				}...)
				continue
			}
			m.Ranges = append(m.Ranges, d.Val())
		}
		if d.NextBlock(0) {
			return d.Err("malformed remote_ip matcher: blocks are not supported")
		}
	}
	return nil
}
// UnmarshalCaddyfile implements caddyfile.Unmarshaler.
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
// UnmarshalCaddyfile implements caddyfile . Unmarshaler .
func (m *MatchRemoteIP) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
	for d.Next() {
		for d.NextArg() {
			if d.Val() == "forwarded" {
				if len(m.Ranges) > 0 {
					return d.Err("if used, 'forwarded' must be first argument")
				}
				m.Forwarded = true
				continue
			}
			if d.Val() == "private_ranges" {
				m.Ranges = append(m.Ranges, []string{
					"192.168.0.0/16",
					"172.16.0.0/12",
					"10.0.0.0/8",
					"127.0.0.1/8",
					"fd00::/8",
					"::1",
				}...)
				continue
			}
			m.Ranges = append(m.Ranges, d.Val())
		}
		if d.NextBlock(0) {
			return d.Err("malformed remote_ip matcher: blocks are not supported")
		}
	}
	return nil
}
func ( m * MatchRemoteIP ) UnmarshalCaddyfile ( d * caddyfile . Dispenser ) error { for d . Next ( ) { for d . NextArg ( ) { if d . Val ( ) == " " { if len ( m . Ranges ) > 0 { return d . Err ( " " ) } m . Forwarded = true continue } if d . Val ( ) == " " { m . Ranges = append ( m . Ranges , [ ] string { " " , " " , " " , " " , " " , " " , } ... ) continue } m . Ranges = append ( m . Ranges , d . Val ( ) ) } if d . NextBlock ( 0 ) { return d . Err ( " " ) } } return nil }
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
UnmarshalCaddyfile implements caddyfile . Unmarshaler .