Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(service, servname, port, txt, ttl = DEFAULT_TTL) {
this.service = service;
this.servname = servname || server.host;
this.port = port;
this.ttl = ttl;
this.txt = txt;
this.name = this.servname + (service ? "." + this.service : "") + "." + server.domain;
this.host = server.host + "." + server.domain;
this.running = [];
};
close() {
constructor(service, servname, port, txt, ttl = DEFAULT_TTL) {
this.service = service;
this.servname = servname || server.host;
this.port = port;
this.ttl = ttl;
this.txt = txt;
this.name = this.servname + (service ? "." + this.service : "") + "." + server.domain;
this.host = server.host + "." + server.domain;
this.running = [];
};
close() {