Skip to content

Commit

Permalink
Install prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Aug 1, 2024
1 parent b9004ad commit 9c9f82a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions roles/socks/files/switcher.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { spawnSync } from "child_process"

import * as LoggerFactory from "log4js"
import * as store from "./store"
import * as train from "./train"
import { spawnSync } from "child_process"

const log = LoggerFactory.getLogger("\t\b\b\b\b\b\b\b")
log.level = "debug"

export function select(upstream: string): store.Backend {
if (/\d$/.test(upstream)) return store.backendList[0]
Expand All @@ -24,6 +27,7 @@ export function select(upstream: string): store.Backend {
break
}
}
log.info(`prefer ${prefer} - ${upstream}`)
store.updateDomain(upstream, prefer, "INIT")
return store.backendList[prefer]
}
Expand Down
1 change: 1 addition & 0 deletions tasks/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- n@latest
- [email protected]
- [email protected]
- [email protected]

0 comments on commit 9c9f82a

Please sign in to comment.