Skip to content

Commit

Permalink
add shuffle lite mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkgo committed Feb 28, 2024
1 parent 2b21cb2 commit 310b920
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ if [ "$CNAUTO" != "no" ]; then
if [ "$SHUFFLE" = "yes" ]; then
sed -i "s/#shuffle//g" /tmp/mosdns.yaml
fi
if [ "$SHUFFLE" = "lite" ]; then
sed -i "s/#liteshuffle//g" /tmp/mosdns.yaml
fi
if [ "$USE_MARK_DATA" = "yes" ]; then
sed -i "s/#global_mark_yes//g" /tmp/mosdns.yaml
if [ ! -f /data/global_mark.dat ]; then
Expand Down
2 changes: 2 additions & 0 deletions src/mosdns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ plugins:
- tag: accept
type: sequence
args:
#liteshuffle - exec: shuffle 2
##swaps_match_start##
##swaps_match_end##
- exec: ok
Expand Down Expand Up @@ -297,6 +298,7 @@ plugins:
type: sequence
args:
#shuffle - exec: shuffle
#liteshuffle - exec: shuffle 3
#addinfo - exec: addinfo respond mosdns cache
- exec: ok
- tag: check_cache
Expand Down

0 comments on commit 310b920

Please sign in to comment.