🚑 修复window下toml目录错误
This commit is contained in:
parent
453f41ff19
commit
acfcdfbb16
@ -49,6 +49,12 @@ const isRangePort = (m: Proxy) => {
|
|||||||
export const genTomlConfig = (config: FrpConfig, proxys: Proxy[]) => {
|
export const genTomlConfig = (config: FrpConfig, proxys: Proxy[]) => {
|
||||||
const proxyToml = proxys.map(m => {
|
const proxyToml = proxys.map(m => {
|
||||||
const rangePort = isRangePort(m);
|
const rangePort = isRangePort(m);
|
||||||
|
config.tlsConfigKeyFile = config.tlsConfigKeyFile.replace(/\\/g, "\\\\");
|
||||||
|
config.tlsConfigCertFile = config.tlsConfigCertFile.replace(/\\/g, "\\\\");
|
||||||
|
config.tlsConfigTrustedCaFile = config.tlsConfigTrustedCaFile.replace(
|
||||||
|
/\\/g,
|
||||||
|
"\\\\"
|
||||||
|
);
|
||||||
let toml = `
|
let toml = `
|
||||||
${
|
${
|
||||||
rangePort
|
rangePort
|
||||||
|
Loading…
Reference in New Issue
Block a user