provide fun to register dns
This commit is contained in:
@@ -39,6 +39,9 @@ class Connection:
|
||||
if self.host.isDynDns():
|
||||
Host.dnsQ.put((self.host.name, self.addr))
|
||||
|
||||
def registerDns(self):
|
||||
Host.dnsQ.put((self.host.name, self.addr))
|
||||
|
||||
|
||||
def statedict(self, Null=False):
|
||||
d = {}
|
||||
@@ -164,6 +167,10 @@ class Host:
|
||||
return d
|
||||
|
||||
|
||||
def registerDns(self):
|
||||
for af in self.connections:
|
||||
self.connections[af].registerDns()
|
||||
|
||||
|
||||
def jsons(self):
|
||||
ddict = {}
|
||||
|
||||
Reference in New Issue
Block a user