mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-21 05:40:29 +08:00
47 lines
1.5 KiB
JavaScript
47 lines
1.5 KiB
JavaScript
'use strict';Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'});const looseTldtsOpt=require('../../_virtual/loose-tldts-opt.cjs');var hasRequiredLooseTldtsOpt;
|
|
|
|
function requireLooseTldtsOpt () {
|
|
if (hasRequiredLooseTldtsOpt) return looseTldtsOpt.__exports;
|
|
hasRequiredLooseTldtsOpt = 1;
|
|
(function (exports) {
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
function _export(target, all) {
|
|
for(var name in all)Object.defineProperty(target, name, {
|
|
enumerable: true,
|
|
get: all[name]
|
|
});
|
|
}
|
|
_export(exports, {
|
|
loosTldOptWithPrivateDomains: function() {
|
|
return loosTldOptWithPrivateDomains;
|
|
},
|
|
looseTldtsOpt: function() {
|
|
return looseTldtsOpt;
|
|
},
|
|
normalizeTldtsOpt: function() {
|
|
return normalizeTldtsOpt;
|
|
}
|
|
});
|
|
const looseTldtsOpt = {
|
|
allowPrivateDomains: false,
|
|
extractHostname: false,
|
|
validateHostname: false,
|
|
detectIp: false,
|
|
mixedInputs: false
|
|
};
|
|
const loosTldOptWithPrivateDomains = {
|
|
...looseTldtsOpt,
|
|
allowPrivateDomains: true
|
|
};
|
|
const normalizeTldtsOpt = {
|
|
allowPrivateDomains: true,
|
|
// in normalizeDomain, we only care if it contains IP, we don't care if we need to extract it
|
|
// by setting detectIp to false and manually check ip outside tldts.parse, we can skip the tldts
|
|
// inner "extractHostname" call
|
|
detectIp: false
|
|
};
|
|
} (looseTldtsOpt.__exports));
|
|
return looseTldtsOpt.__exports;
|
|
}exports.__require=requireLooseTldtsOpt; |