Lines 432-442
read_server_config()
Link Here
|
432 |
else |
432 |
else |
433 |
write_bool_param lzo false |
433 |
write_bool_param lzo false |
434 |
fi |
434 |
fi |
435 |
if grep -qs '^ncp-disable' "$IFACESDIR/$dev/$OVPNCONFIG";then |
|
|
436 |
write_bool_param ncp_disable true |
437 |
else |
438 |
write_bool_param ncp_disable false |
439 |
fi |
440 |
if get_config_val "$dev" proto | grep -qs '^tcp';then |
435 |
if get_config_val "$dev" proto | grep -qs '^tcp';then |
441 |
write_bool_param use_tcp true |
436 |
write_bool_param use_tcp true |
442 |
else |
437 |
else |
Lines 465-471
read_server_config()
Link Here
|
465 |
write_string_param type "$type" |
460 |
write_string_param type "$type" |
466 |
write_string_param port '1194' |
461 |
write_string_param port '1194' |
467 |
write_bool_param lzo false |
462 |
write_bool_param lzo false |
468 |
write_bool_param ncp_disable false |
|
|
469 |
write_bool_param use_tcp false |
463 |
write_bool_param use_tcp false |
470 |
if [ "$type" = 'routed' ];then |
464 |
if [ "$type" = 'routed' ];then |
471 |
write_string_param server_netmask '255.255.255.0' |
465 |
write_string_param server_netmask '255.255.255.0' |
Lines 793-799
SERVER_CONF_TEMPLATE
Link Here
|
793 |
[ -n "$in_digests" ] && echo "auth $in_digests" >> $CACHEDIR/$dev/$OVPNCONFIG |
787 |
[ -n "$in_digests" ] && echo "auth $in_digests" >> $CACHEDIR/$dev/$OVPNCONFIG |
794 |
|
788 |
|
795 |
test_bool "$in_lzo" && echo 'comp-lzo' >>"$CACHEDIR/$dev/$OVPNCONFIG" |
789 |
test_bool "$in_lzo" && echo 'comp-lzo' >>"$CACHEDIR/$dev/$OVPNCONFIG" |
796 |
test_bool "$in_ncp_disable" && echo 'ncp-disable' >>"$CACHEDIR/$dev/$OVPNCONFIG" |
|
|
797 |
|
790 |
|
798 |
if is_gost x509 "$CERTSDIR/$servername.cert"; then |
791 |
if is_gost x509 "$CERTSDIR/$servername.cert"; then |
799 |
local engine=gost |
792 |
local engine=gost |