#!/bin/sh

. /etc/control.d/functions

CONFIG=/etc/w3c/validator.conf

new_subst relaxed \
	'^Allow Private IPs[[:space:]]*=[[:space:]]*yes' \
	's,^\(Allow Private IPs\).*,\1 = yes,'
new_subst restricted \
	'^Allow Private IPs[[:space:]]*=[[:space:]]*no' \
	's,^\(Allow Private IPs\).*,\1 = no,'

new_help relaxed "Allows processing pages with private IPs"
new_help restricted "Restricts processing pages with private IPs"

control_subst "$CONFIG" "$*"
