🐛 修复启动报错
This commit is contained in:
parent
efb5e94d4e
commit
d45a9b84bb
@ -35,8 +35,8 @@ const getFrpcVersionWorkerPath = (
|
|||||||
|
|
||||||
const isRangePort = (m: Proxy) => {
|
const isRangePort = (m: Proxy) => {
|
||||||
return (
|
return (
|
||||||
(m.localPort.indexOf("-") !== -1 || m.localPort.indexOf(",") !== -1) &&
|
(m.type === "tcp" || m.type === "udp") &&
|
||||||
(m.type === "tcp" || m.type === "udp")
|
(m.localPort.indexOf("-") !== -1 || m.localPort.indexOf(",") !== -1)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ export const genIniConfig = (config: FrpConfig, proxys: Proxy[]) => {
|
|||||||
const proxyIni = proxys.map(m => {
|
const proxyIni = proxys.map(m => {
|
||||||
const rangePort = isRangePort(m);
|
const rangePort = isRangePort(m);
|
||||||
let ini = `
|
let ini = `
|
||||||
[${rangePort ? 'range:' : ''}${m.name}]
|
[${rangePort ? "range:" : ""}${m.name}]
|
||||||
type = "${m.type}"
|
type = "${m.type}"
|
||||||
`;
|
`;
|
||||||
switch (m.type) {
|
switch (m.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user