+ # calculate trusted networks
+ cp_get_netaddr || true
+ netaddr="$RET"
+ trusted_networks=$(awk '/^trusted_networks/ { print $2 }' \
+ $confdir/local.cf.$$)
+ for i in "127.0.0.0/8" "$netaddr"; do
+ if ! echo "$trusted_networks" | grep -q "$i"; then
+ trusted_networks="$trusted_networks $i"
+ fi
+ done
+ cp_check_and_sed "^trusted_networks " \
+ "s#^trusted_networks .*#trusted_networks $trusted_networks#g" \
+ $confdir/local.cf.$$ || true
+ echo "CN: Activated $trusted_networks as trusted networks"
+