(r *http.Request)
| 257 | } |
| 258 | |
| 259 | func clientIP(r *http.Request) string { |
| 260 | if v := r.Header.Get("Do-Connecting-Ip"); v != "" { |
| 261 | return v |
| 262 | } |
| 263 | if v := r.Header.Get("CF-Connecting-IP"); v != "" { |
| 264 | return v |
| 265 | } |
| 266 | return r.RemoteAddr |
| 267 | } |
| 268 | |
| 269 | func (b *Botshed) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { |
| 270 | for d.Next() { |