File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ CONFIG_REQUIRED_DEFAULT_ROUTE="^route 192.168.254.0 255.255.255.0"
56
56
CONFIG_MATCH_DEFAULT_ROUTE=$( busybox grep ' route 192.168.254.0 255.255.255.0' /etc/openvpn/openvpn.conf)
57
57
58
58
# 9. Should see a push of 'block-outside-dns' by default
59
- CONFIG_REQUIRED_DEFAULT_ROUTE =" ^push block-outside-dns"
60
- CONFIG_MATCH_DEFAULT_ROUTE =$( busybox grep ' push block-outside-dns' /etc/openvpn/openvpn.conf)
59
+ CONFIG_REQUIRED_BLOCK_OUTSIDE_DNS =" ^push block-outside-dns"
60
+ CONFIG_MATCH_BLOCK_OUTSIDE_DNS =$( busybox grep ' push block-outside-dns' /etc/openvpn/openvpn.conf)
61
61
62
62
# 10. Should see a push of 'dhcp-option DNS' by default
63
63
CONFIG_REQUIRED_DEFAULT_DNS_1=" ^push dhcp-option DNS 8.8.8.8"
@@ -127,6 +127,13 @@ else
127
127
abort " ==> Config match not found: $CONFIG_REQUIRED_DEFAULT_ROUTE != $CONFIG_MATCH_DEFAULT_ROUTE "
128
128
fi
129
129
130
+ if [[ $CONFIG_MATCH_BLOCK_OUTSIDE_DNS =~ $CONFIG_REQUIRED_BLOCK_OUTSIDE_DNS ]]
131
+ then
132
+ echo " ==> Config match found: $CONFIG_REQUIRED_BLOCK_OUTSIDE_DNS == $CONFIG_MATCH_BLOCK_OUTSIDE_DNS "
133
+ else
134
+ abort " ==> Config match not found: $CONFIG_REQUIRED_BLOCK_OUTSIDE_DNS != $CONFIG_MATCH_BLOCK_OUTSIDE_DNS "
135
+ fi
136
+
130
137
if [[ $CONFIG_MATCH_DEFAULT_DNS_1 =~ $CONFIG_REQUIRED_DEFAULT_DNS_1 ]]
131
138
then
132
139
echo " ==> Config match found: $CONFIG_REQUIRED_DEFAULT_DNS_1 == $CONFIG_MATCH_DEFAULT_DNS_1 "
You can’t perform that action at this time.
0 commit comments