Example #1
0
File: vpn.py Project: m3z/ToMaTo
	def _destroyExternalAccess(self):
		if not self.getExternalAccess():
			return
		if not self.getExternalAccessPort():
			return
		vtun.destroy(self.getExternalAccessHost(), self.getExternalAccessPort())
		self._unassignVtunData()
Example #2
0
	def _destroyExternalAccess(self):
		if not self.getExternalAccess():
			return
		host = self.getExternalAccessHost()
		if not host:
			return
		port = self.getExternalAccessPort()
		if port:
			vtun.destroy(host, port)
		self._unassignVtunData()