Skip to content

Commit

Permalink
fix: outbound not found
Browse files Browse the repository at this point in the history
  • Loading branch information
7Sageer committed Aug 21, 2024
1 parent ccd28f5 commit c6f27f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ClashConfigBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ClashConfigBuilder extends BaseConfigBuilder {
let outbounds;
if (typeof this.selectedRules === 'string' && PREDEFINED_RULE_SETS[this.selectedRules]) {
outbounds = getOutbounds(PREDEFINED_RULE_SETS[this.selectedRules]);
} else if(!this.selectedRules) {
} else if(this.selectedRules) {
outbounds = getOutbounds(this.selectedRules);
} else {
outbounds = getOutbounds(PREDEFINED_RULE_SETS.minimal);
Expand Down
2 changes: 1 addition & 1 deletion src/SingboxConfigBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class ConfigBuilder extends BaseConfigBuilder {
let outbounds;
if (typeof this.selectedRules === 'string' && PREDEFINED_RULE_SETS[this.selectedRules]) {
outbounds = getOutbounds(PREDEFINED_RULE_SETS[this.selectedRules]);
} else if(!this.selectedRules) {
} else if(this.selectedRules) {
outbounds = getOutbounds(this.selectedRules);
} else {
outbounds = getOutbounds(PREDEFINED_RULE_SETS.minimal);
Expand Down
1 change: 0 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ export function generateRules(selectedRules = [], customRules = []) {


export function generateRuleSets(selectedRules = [], customRules = []) {
console.log(customRules[0]);
if (typeof selectedRules === 'string' && PREDEFINED_RULE_SETS[selectedRules]) {
selectedRules = PREDEFINED_RULE_SETS[selectedRules];
}
Expand Down

0 comments on commit c6f27f4

Please sign in to comment.