mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-04 13:33:56 +08:00
update 2026-10-22 17:05:51
This commit is contained in:
1 parent
06b74cb314
commit
3f38c69f75
303 files changed
+7299
-130543
No files matched your search
@@ -45,10 +45,6 @@ o.placeholder = "255.255.255.0"
|
||||
o.default = o.placeholder
|
||||
o.rmempty = false
|
||||
|
||||
o = s:taboption("general", Flag, "lzo", translate("LZO compression"))
|
||||
o.default = "1"
|
||||
o.rmempty = false
|
||||
|
||||
o = s:taboption("general", TextValue, "extra_config", translate("Extra Config"))
|
||||
o.datatype = "string"
|
||||
o.rows = 3
|
||||
|
||||
@@ -28,9 +28,6 @@ msgstr "IP 段"
|
||||
msgid "Subnet mask"
|
||||
msgstr "子网掩码"
|
||||
|
||||
msgid "LZO compression"
|
||||
msgstr "LZO 压缩"
|
||||
|
||||
msgid "Extra Config"
|
||||
msgstr "额外配置"
|
||||
|
||||
|
||||
@@ -6,5 +6,4 @@ config server 'server'
|
||||
option ipv6 '1'
|
||||
option ip_segment '172.30.1.0'
|
||||
option subnet_mask '255.255.255.0'
|
||||
option lzo '1'
|
||||
option ddns 'example.com'
|
||||
@@ -80,8 +80,6 @@ gen_include() {
|
||||
start_service() {
|
||||
local enabled=$(uci -q get ${CONFIG}.server.enabled)
|
||||
[ "${enabled}" -eq 1 ] || return 1
|
||||
local lzo=$(uci -q get ${CONFIG}.server.lzo)
|
||||
[ "${lzo}" -eq 1 ] && lzo_conf="comp-lzo"
|
||||
mkdir -p ${TMP_OVPN_PATH}
|
||||
|
||||
_ca=${OVPN_PATH}/ca.crt
|
||||
@@ -147,7 +145,6 @@ start_service() {
|
||||
up ${SCRIPT_PATH}/up.sh
|
||||
down ${SCRIPT_PATH}/down.sh
|
||||
keepalive 10 120
|
||||
${lzo_conf}
|
||||
persist-key
|
||||
persist-tun
|
||||
script-security 3
|
||||
|
||||
@@ -16,7 +16,6 @@ cat <<-EOF > /tmp/openvpn.ovpn
|
||||
persist-key
|
||||
persist-tun
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 3
|
||||
<ca>
|
||||
$(cat /usr/share/openvpn-server/ca.crt)
|
||||
|
||||
Reference in new issue
Block a user