Skip to content

Commit

Permalink
luci-app-passwall: adapt to the latest version of geoview
Browse files Browse the repository at this point in the history
Reduce memory usage, requires Geoview version 0.0.7 or above
  • Loading branch information
SakuraFallingMad committed Dec 5, 2024
1 parent 1c58887 commit 79f6175
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ get_geoip() {
"ipv6") geoip_type_flag="-ipv4=false" ;;
esac
if type geoview &> /dev/null; then
geoview -input "$geoip_path" -list "$geoip_code" $geoip_type_flag
geoview -input "$geoip_path" -list "$geoip_code" $geoip_type_flag -lowmem=true
else
echo ""
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ get_geoip() {
"ipv6") geoip_type_flag="-ipv4=false" ;;
esac
if type geoview &> /dev/null; then
geoview -input "$geoip_path" -list "$geoip_code" $geoip_type_flag
geoview -input "$geoip_path" -list "$geoip_code" $geoip_type_flag -lowmem=true
else
echo ""
fi
Expand Down

0 comments on commit 79f6175

Please sign in to comment.