@achingbrain/nat-port-mapper
Version:
Port mapping with UPnP and NAT-PMP
13 lines • 353 B
JavaScript
import { EventEmitter } from 'events';
import { PMPGateway } from './gateway.js';
export class PMPClient extends EventEmitter {
options;
constructor(options = {}) {
super();
this.options = options;
}
getGateway(ipAddress) {
return new PMPGateway(ipAddress, this.options);
}
}
//# sourceMappingURL=index.js.map