|
@@ -10,6 +10,7 @@ setup_config() {
|
10
|
10
|
config_get max_same $1 max_same "2"
|
11
|
11
|
config_get dpd $1 dpd "120"
|
12
|
12
|
config_get predictable_ips $1 predictable_ips "1"
|
|
13
|
+ config_get compression $1 compression "0"
|
13
|
14
|
config_get udp $1 udp "1"
|
14
|
15
|
config_get auth $1 auth "plain"
|
15
|
16
|
config_get cisco_compat $1 cisco_compat "1"
|
|
@@ -20,11 +21,13 @@ setup_config() {
|
20
|
21
|
|
21
|
22
|
enable_default_domain="#"
|
22
|
23
|
enable_udp="#"
|
|
24
|
+ enable_compression="#"
|
23
|
25
|
test $predictable_ips = "0" && predictable_ips="false"
|
24
|
26
|
test $predictable_ips = "1" && predictable_ips="true"
|
25
|
27
|
test $cisco_compat = "0" && cisco_compat="false"
|
26
|
28
|
test $cisco_compat = "1" && cisco_compat="true"
|
27
|
29
|
test $udp = "1" && enable_udp=""
|
|
30
|
+ test $compression = "1" && enable_compression=""
|
28
|
31
|
test -z $default_domain && enable_default_domain=""
|
29
|
32
|
test -z $ip6addr && enable_ipv6="#"
|
30
|
33
|
|
|
@@ -49,6 +52,7 @@ setup_config() {
|
49
|
52
|
-e "s/|ENABLE_DEFAULT_DOMAIN|/$enable_default_domain/g" \
|
50
|
53
|
-e "s/|CISCO_COMPAT|/$cisco_compat/g" \
|
51
|
54
|
-e "s/|UDP|/$enable_udp/g" \
|
|
55
|
+ -e "s/|COMPRESSION|/$enable_compression/g" \
|
52
|
56
|
-e "s/|IPV4ADDR|/$ipaddr/g" \
|
53
|
57
|
-e "s/|NETMASK|/$netmask/g" \
|
54
|
58
|
-e "s/|IPV6ADDR|/$ipv6_addr/g" \
|