summaryrefslogtreecommitdiff
path: root/kpov_judge
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge')
-rw-r--r--kpov_judge/tasks/openvpn_simple_smb/task.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/kpov_judge/tasks/openvpn_simple_smb/task.py b/kpov_judge/tasks/openvpn_simple_smb/task.py
index 86fba69..c52c945 100644
--- a/kpov_judge/tasks/openvpn_simple_smb/task.py
+++ b/kpov_judge/tasks/openvpn_simple_smb/task.py
@@ -349,6 +349,12 @@ def task_check(results, params):
if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1:
score += 3
+ if results['SimpleArbiter_VPN_is_set_up'] == 1:
+ score += 3
+ if results['SimpleArbiter_VPN_is_running'] == 1:
+ score +=3
+ #zal si se nisem prišla na jasno s pingi
+ #if results['SimpleArbiter_ping_C1'] .find(Server:\t\t{0}\r'.format(params[])
if results['static_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_static'])) > -1:
score += 3
if re.search(r'eth0 +802-.*connected', results['NM_nmcli']):