UNPKG

proxy-protocol-js

Version:

A PROXY protocol builder and parser for JavaScript

20 lines 771 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnspecProxyAddress = void 0; var AddressFamily_1 = require("../enum/AddressFamily"); var UnspecProxyAddress = (function () { function UnspecProxyAddress() { } UnspecProxyAddress.from = function (data) { return new UnspecProxyAddress(); }; UnspecProxyAddress.prototype.getLength = function () { return new AddressFamily_1.AddressFamily(this.getAddressFamilyType()).getLength(); }; UnspecProxyAddress.prototype.getAddressFamilyType = function () { return AddressFamily_1.AddressFamilyType.UNSPEC; }; return UnspecProxyAddress; }()); exports.UnspecProxyAddress = UnspecProxyAddress; //# sourceMappingURL=UnspecProxyAddress.js.map