#!/bin/sh

. caterva-alterator.sh

SSL_ports=`read_val "SSL_ports"`

if [ -n "$SSL_ports" ] && [ "$SSL_ports" = "yes" ]; then
    cat <<EOF
# Deny CONNECT to other than SSL ports
acl CONNECT method CONNECT
http_access deny CONNECT !SSL_ports
EOF
    print_info "Deny CONNECT to other than SSL ports"
fi
