Skip to content

Commit

Permalink
feat: always add domain to surge external provider's args
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Nov 26, 2019
1 parent 10084a4 commit 98ebd89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,10 @@ export const getSurgeNodes = (

if (config.hostnameIp) {
configString.push(...config.hostnameIp.map(item => `addresses = ${item}`));
} else {
configString.push(`addresses = ${config.hostname}`);
}

configString.push(`addresses = ${config.hostname}`);

return ([
config.nodeName,
configString.join(', '),
Expand Down Expand Up @@ -473,10 +473,10 @@ export const getSurgeNodes = (

if (config.hostnameIp) {
configString.push(...config.hostnameIp.map(item => `addresses = ${item}`));
} else {
configString.push(`addresses = ${config.hostname}`);
}

configString.push(`addresses = ${config.hostname}`);

if (process.env.NODE_ENV !== 'test') {
fs.writeJSONSync(jsonFilePath, jsonFile);
}
Expand Down

0 comments on commit 98ebd89

Please sign in to comment.