Skip to content

Commit

Permalink
Update internetIncome.sh
Browse files Browse the repository at this point in the history
Changed priority of dns
  • Loading branch information
engageub authored Jan 2, 2024
1 parent e3f7f02 commit 4b17c52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internetIncome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ start_containers() {
echo "$CONTAINER_ID" | tee -a $containers_file
echo "tun$UNIQUE_ID$i" | tee -a $container_names_file
if [ "$USE_SOCKS5_DNS" != true ]; then
sudo docker exec tun$UNIQUE_ID$i sh -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf;echo "nameserver 1.1.1.1" >> /etc/resolv.conf;ip rule add iif lo ipproto udp dport 53 lookup main;'
sudo docker exec tun$UNIQUE_ID$i sh -c "sed -i \"\|exec tun2socks|s#.*#echo 'nameserver 8.8.8.8' > /etc/resolv.conf;echo 'nameserver 1.1.1.1' >> /etc/resolv.conf;ip rule add iif lo ipproto udp dport 53 lookup main;exec tun2socks \\\\\#\" entrypoint.sh"
sudo docker exec tun$UNIQUE_ID$i sh -c 'echo "nameserver 1.1.1.1" > /etc/resolv.conf;echo "nameserver 8.8.8.8" >> /etc/resolv.conf;ip rule add iif lo ipproto udp dport 53 lookup main;'
sudo docker exec tun$UNIQUE_ID$i sh -c "sed -i \"\|exec tun2socks|s#.*#echo 'nameserver 1.1.1.1' > /etc/resolv.conf;echo 'nameserver 8.8.8.8' >> /etc/resolv.conf;ip rule add iif lo ipproto udp dport 53 lookup main;exec tun2socks \\\\\#\" entrypoint.sh"
else
sudo docker exec tun$UNIQUE_ID$i sh -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf;echo "nameserver 1.1.1.1" >> /etc/resolv.conf;'
sudo docker exec tun$UNIQUE_ID$i sh -c "sed -i \"\|exec tun2socks|s#.*#echo 'nameserver 8.8.8.8' > /etc/resolv.conf;echo 'nameserver 1.1.1.1' >> /etc/resolv.conf;exec tun2socks \\\\\#\" entrypoint.sh"
sudo docker exec tun$UNIQUE_ID$i sh -c 'echo "nameserver 1.1.1.1" > /etc/resolv.conf;echo "nameserver 8.8.8.8" >> /etc/resolv.conf;'
sudo docker exec tun$UNIQUE_ID$i sh -c "sed -i \"\|exec tun2socks|s#.*#echo 'nameserver 1.1.1.1' > /etc/resolv.conf;echo 'nameserver 8.8.8.8' >> /etc/resolv.conf;exec tun2socks \\\\\#\" entrypoint.sh"
fi
else
echo -e "${RED}Failed to start container for proxy. Exiting..${NOCOLOUR}"
Expand Down

0 comments on commit 4b17c52

Please sign in to comment.