Have empty services array sent if none exist

Change site title
This commit is contained in:
Itay Mizeretz 2017-09-17 16:47:40 +03:00
parent 1081c84d38
commit ea657e7b7c
2 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,8 @@ class NodeService:
new_node["accessible_from_nodes"] = accessible_from_nodes
if len(edges) > 0:
new_node["services"] = edges[-1]["services"]
else:
new_node["services"] = []
return new_node

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Monkey Island C&C Server</title>
<title>Infection Monkey C&C</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">