mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
snowflake: mount default geoip paths
-metrics option requires access to these files to geolocate clients Signed-off-by: matzfan <matzfan@mailinator.com>
This commit is contained in:
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=snowflake
|
||||
PKG_VERSION:=2.11.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL=https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
|
||||
|
||||
@@ -17,6 +17,9 @@ start_service() {
|
||||
[ -x /sbin/ujail ] && {
|
||||
procd_add_jail snowflake-proxy ronly
|
||||
procd_add_jail_mount /etc/ssl/certs
|
||||
# change the following if specifying non default paths with the -geoipdb or -geoip6db command parameters
|
||||
procd_add_jail_mount /usr/share/tor/geoip
|
||||
procd_add_jail_mount /usr/share/tor/geoip6
|
||||
procd_set_param no_new_privs 1
|
||||
}
|
||||
procd_close_instance
|
||||
|
||||
Reference in New Issue
Block a user