Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
tproxy update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChisBread committed May 9, 2022
1 parent 26425eb commit 0e4851c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions buildx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
sudo docker buildx build --push --platform=linux/amd64,linux/arm/v7,linux/arm64/v8 --tag chisbread/chislash:latest --no-cache .
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eE
echolog() {
echo -e "\033[32m[chislash log]\033[0m" $*
Expand Down
2 changes: 1 addition & 1 deletion transparent_proxy/tproxy.start
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
IP_CMD='ip'
IPTABLES_CMD='iptables'
IP_STACK='ipv4'
NO_PROXY_IP=("0.0.0.0/8" "127.0.0.0/8" "172.16.0.0/12" "192.168.0.0/16" "169.254.0.0/16" "224.0.0.0/4" "240.0.0.0/4")
NO_PROXY_IP=("0.0.0.0/8" "127.0.0.0/8" "10.0.0.0/8" "172.0.0.0/8" "192.168.0.0/16" "169.254.0.0/16" "224.0.0.0/4" "240.0.0.0/4")
# 第一个参数决定IPv4/IPv6
if [ "$1" == "ipv6" ]; then
IP_CMD='ip -6'
Expand Down

0 comments on commit 0e4851c

Please sign in to comment.