|
@@ -2,7 +2,7 @@ type ProxyItem = [string, string];
|
|
|
|
|
|
type ProxyList = ProxyItem[];
|
|
type ProxyList = ProxyItem[];
|
|
|
|
|
|
-export function createProxy(list: ProxyList) {
|
|
|
|
|
|
+export function createProxy(list: ProxyList = []) {
|
|
const ret: any = {};
|
|
const ret: any = {};
|
|
for (const [prefix, target] of list) {
|
|
for (const [prefix, target] of list) {
|
|
ret[prefix] = {
|
|
ret[prefix] = {
|