Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loon http与https生成有问题 #159

Closed
KotaHv opened this issue Oct 21, 2021 · 1 comment
Closed

Loon http与https生成有问题 #159

KotaHv opened this issue Oct 21, 2021 · 1 comment

Comments

@KotaHv
Copy link
Contributor

KotaHv commented Oct 21, 2021

当前代码为

case NodeTypeEnum.HTTPS:
    return [
    `${nodeConfig.nodeName} = http`,
    nodeConfig.hostname,
    nodeConfig.port,
    nodeConfig.username /* istanbul ignore next */ || '',
    JSON.stringify(nodeConfig.password) /* istanbul ignore next */ ||
        '""',
    ].join(',');

case NodeTypeEnum.HTTP:
    return [
    `${nodeConfig.nodeName} = https`,
    nodeConfig.hostname,
    nodeConfig.port,
    nodeConfig.username /* istanbul ignore next */ || '',
    JSON.stringify(nodeConfig.password) /* istanbul ignore next */ ||
        '""',
    ].join(',');

应修改为

case NodeTypeEnum.HTTP:
    return [
    `${nodeConfig.nodeName} = http`,
    nodeConfig.hostname,
    nodeConfig.port,
    nodeConfig.username /* istanbul ignore next */ || '',
    JSON.stringify(nodeConfig.password) /* istanbul ignore next */ ||
        '""',
    ].join(',');

case NodeTypeEnum.HTTPS:
    return [
    `${nodeConfig.nodeName} = https`,
    nodeConfig.hostname,
    nodeConfig.port,
    nodeConfig.username /* istanbul ignore next */ || '',
    JSON.stringify(nodeConfig.password) /* istanbul ignore next */ ||
        '""',
    ].join(',');
@geekdada
Copy link
Member

这个问题应该已经存在很长时间了,谢谢指出……

@KotaHv KotaHv closed this as completed Oct 24, 2021
@geekdada geekdada reopened this Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants