MCPcopy
hub / github.com/evilsocket/opensnitch / get_node_hostname

Method get_node_hostname

ui/opensnitch/nodes.py:174–181  ·  view source on GitHub ↗
(self, addr)

Source from the content-addressed store, hash-verified

172 return self._nodes
173
174 def get_node_hostname(self, addr):
175 try:
176 if addr not in self._nodes:
177 return ""
178 return self._nodes[addr]['data'].name
179 except Exception as e:
180 print(self.LOG_TAG + " exception get_node_hostname(): ", e)
181 return ""
182
183 def get_node_config(self, addr):
184 try:

Callers 7

_load_nodesMethod · 0.80
_load_nodesMethod · 0.80
_load_nodesMethod · 0.80
load_nodesMethod · 0.80
_add_rulesTree_nodesMethod · 0.80
promptUserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected