"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parsePort = void 0;
function parsePort(url) {
    const port = parseInt(url.port);
    if (port) {
        return port;
    }
    switch (url.protocol) {
        case 'http':
            return 80;
        case 'https':
            return 80;
        default:
            return 0;
    }
}
exports.parsePort = parsePort;
//# sourceMappingURL=utils.js.map