@node-lightning/wire
Version:
Lightning Network Wire Protocol
21 lines • 593 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressIPv6 = void 0;
const Address_1 = require("./Address");
const AddressType_1 = require("./AddressType");
class AddressIPv6 extends Address_1.Address {
/**
* Represents an IPv6 address with the host and port.
*/
constructor(host, port) {
super(host, port);
}
get type() {
return AddressType_1.AddressType.IPv6;
}
toString() {
return `[${this.host}]:${this.port}`;
}
}
exports.AddressIPv6 = AddressIPv6;
//# sourceMappingURL=AddressIPv6.js.map