mirror of
https://github.com/uklans/cache-domains
synced 2025-06-19 07:52:56 +02:00
Fix missing condition.
This commit is contained in:
parent
b893e48dbd
commit
824f129124
@ -50,14 +50,16 @@ while read entry; do
|
|||||||
destfilename=$(echo $filename | sed -e 's/txt/conf/')
|
destfilename=$(echo $filename | sed -e 's/txt/conf/')
|
||||||
outputfile=${outputdir}/${destfilename}
|
outputfile=${outputdir}/${destfilename}
|
||||||
touch $outputfile
|
touch $outputfile
|
||||||
|
|
||||||
echo 'forward-zone:' > $outputfile
|
if $forward; then
|
||||||
echo " name: \"${key}.cache.lancache.net.\"" >> $outputfile
|
echo 'forward-zone:' > $outputfile
|
||||||
for i in ${cacheip}; do
|
echo " name: \"${key}.cache.lancache.net.\"" >> $outputfile
|
||||||
echo " forward-addr: \"${i}\"" >> $outputfile
|
for i in ${cacheip}; do
|
||||||
done
|
echo " forward-addr: \"${i}\"" >> $outputfile
|
||||||
echo " forward-first: yes" >> $outputfile
|
done
|
||||||
echo " forward-no-cache: yes" >> $outputfile
|
echo " forward-first: yes" >> $outputfile
|
||||||
|
echo " forward-no-cache: yes" >> $outputfile
|
||||||
|
fi
|
||||||
|
|
||||||
while read fileentry; do
|
while read fileentry; do
|
||||||
# Ignore comments and newlines
|
# Ignore comments and newlines
|
||||||
|
Loading…
Reference in New Issue
Block a user