# HG changeset patch # User Pascal Bellard # Date 1301665630 -7200 # Node ID 8fa973073dd6a95e91c2a4a2ef5a953e5cfc44a6 # Parent ad4637f89bde2bc9cefe870f9810bb2865c51276 manager, wiki: fix subnet in /etc/httpd.conf diff -r ad4637f89bde -r 8fa973073dd6 manager/receipt --- a/manager/receipt Fri Apr 01 15:24:43 2011 +0200 +++ b/manager/receipt Fri Apr 01 15:47:10 2011 +0200 @@ -36,7 +36,8 @@ A:127.0.0.1 # Allow local loopback connections $( . $1/etc/network.conf while [ -n "$IP" ]; do - echo "A:$IP/$NETMASK # Allow address from $IP/$NETMASK" + IFS=. ; set -- $IP $NETMASK ; unset IFS + echo "A: $(($1 & $5)).$(($2 & $6)).$(($3 & $7)).$(($4 & $8))/$NETMASK" IP="$LAN_IP" ; NETMASK="$LAN_NETMASK" ; LAN_IP="" done ) D:* # Deny from other IP connections diff -r ad4637f89bde -r 8fa973073dd6 wiki/receipt --- a/wiki/receipt Fri Apr 01 15:24:43 2011 +0200 +++ b/wiki/receipt Fri Apr 01 15:47:10 2011 +0200 @@ -35,7 +35,8 @@ A:127.0.0.1 # Allow local loopback connections $( . $1/etc/network.conf while [ -n "$IP" ]; do - echo "A:$IP/$NETMASK # Allow address from $IP/$NETMASK" + IFS=. ; set -- $IP $NETMASK ; unset IFS + echo "A: $(($1 & $5)).$(($2 & $6)).$(($3 & $7)).$(($4 & $8))/$NETMASK" IP="$LAN_IP" ; NETMASK="$LAN_NETMASK" ; LAN_IP="" done ) D:* # Deny from other IP connections