Merge pull request #383 from DZamataev/master

[bug fix] removes pushing 'comp-lzo' when it is enabled to avoid issues on Android
This commit is contained in:
Kyle Manna 2018-05-05 19:44:40 -07:00 committed by GitHub
commit 73f8b02172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,6 +352,7 @@ fi
[ -n "${OVPN_CLIENT_TO_CLIENT:-}" ] && echo "client-to-client" >> "$conf"
[ "$OVPN_COMP_LZO" == "1" ] && echo "comp-lzo" >> "$conf"
[ "$OVPN_COMP_LZO" == "0" ] && echo "comp-lzo no" >> "$conf"
[ -n "${OVPN_FRAGMENT:-}" ] && echo "fragment $OVPN_FRAGMENT" >> "$conf"
@ -371,8 +372,6 @@ done
if [ "$OVPN_COMP_LZO" == "0" ]; then
process_push_config "comp-lzo no"
else
process_push_config "comp-lzo"
fi
[ ${#OVPN_PUSH[@]} -gt 0 ] && for i in "${OVPN_PUSH[@]}"; do