| 3 | |
| 4 | /** Parsed server runtime config, sourced entirely from env. */ |
| 5 | export interface ServerEnv { |
| 6 | controlPort: number |
| 7 | clashApiPort: number |
| 8 | mixedPort: number |
| 9 | dataDir: string |
| 10 | mihomoBin: string |
| 11 | controlToken: string |
| 12 | clashSecret: string |
| 13 | } |
| 14 | |
| 15 | function int(value: string | undefined, fallback: number): number { |
| 16 | const n = value == null ? Number.NaN : Number.parseInt(value, 10) |
nothing calls this directly
no outgoing calls
no test coverage detected