def vpn_status(self):
<EOL>if not self.check_pid and not self.thread_started:<EOL><INDENT>self._start_handler_thread()<EOL><DEDENT>name = None<EOL>color = self.py3.COLOR_BAD<EOL>if self.check_pid:<EOL><INDENT>if self._check_pid():<EOL><INDENT>name = "<STR_LIT:yes>"<EOL>color = self.py3.COLOR_GOOD<EOL><DEDENT><DEDENT>else:<EOL><INDENT>vpn = self._get_vpn_status()<EOL>if vpn:<EOL><INDENT>name = "<STR_LIT:U+002CU+0020>".join(vpn)<EOL>color = self.py3.COLOR_GOOD<EOL><DEDENT><DEDENT>full_text = self.py3.safe_format(self.format, {"<STR_LIT:name>": name})<EOL>response = {<EOL>"<STR_LIT>": full_text,<EOL>"<STR_LIT>": color,<EOL>"<STR_LIT>": self.py3.CACHE_FOREVER,<EOL>}<EOL>if self.check_pid:<EOL><INDENT>response["<STR_LIT>"] = self.py3.time_in(self.cache_timeout)<EOL><DEDENT>return response<EOL>
Returns response dict