Skip to content

Commit 89e779b

Browse files
committed
fix: ix deprecated comp-lzo to compress lzo
kylemanna#652
1 parent 8674f98 commit 89e779b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bin/ovpn_genconfig

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ usage() {
103103
echo " -N Configure NAT to access external server network"
104104
echo " -t Use TAP device (instead of TUN device)"
105105
echo " -T Encrypt packets with the given cipher algorithm instead of the default one (tls-cipher)."
106-
echo " -z Enable comp-lzo compression."
106+
echo " -z Enable compress lzo compression."
107107
}
108108

109109
process_route_config() {
@@ -351,8 +351,8 @@ fi
351351
[ -n "$OVPN_AUTH" ] && echo "auth $OVPN_AUTH" >> "$conf"
352352

353353
[ "$OVPN_CLIENT_TO_CLIENT" == "1" ] && echo "client-to-client" >>"$conf"
354-
[ "$OVPN_COMP_LZO" == "1" ] && echo "comp-lzo" >> "$conf"
355-
[ "$OVPN_COMP_LZO" == "0" ] && echo "comp-lzo no" >> "$conf"
354+
[ "$OVPN_COMP_LZO" == "1" ] && echo "compress lzo" >> "$conf"
355+
[ "$OVPN_COMP_LZO" == "0" ] && echo "compress lzo no" >> "$conf"
356356

357357
[ -n "${OVPN_FRAGMENT:-}" ] && echo "fragment $OVPN_FRAGMENT" >> "$conf"
358358

@@ -371,7 +371,7 @@ fi
371371
done
372372

373373
if [ "$OVPN_COMP_LZO" == "0" ]; then
374-
process_push_config "comp-lzo no"
374+
process_push_config "compress lzo no"
375375
fi
376376

377377
[ ${#OVPN_PUSH[@]} -gt 0 ] && for i in "${OVPN_PUSH[@]}"; do

bin/ovpn_getclient

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ tls-crypt ta.key 1
9898
fi
9999

100100
if [ "$OVPN_COMP_LZO" == "1" ]; then
101-
echo "comp-lzo"
101+
echo "compress lzo"
102102
else
103-
echo "comp-lzo no"
103+
echo "compress lzo no"
104104
fi
105105

106106
if [ -n "$OVPN_OTP_AUTH" ]; then

0 commit comments

Comments
 (0)