()
| 257 | } |
| 258 | |
| 259 | func v2rayConfigPaths() []string { |
| 260 | home, _ := os.UserHomeDir() |
| 261 | if runtime.GOOS == "windows" { |
| 262 | app := os.Getenv("APPDATA") |
| 263 | return []string{ |
| 264 | filepath.Join(app, "v2ray", "config.json"), |
| 265 | filepath.Join(app, "v2rayN", "config.json"), |
| 266 | } |
| 267 | } |
| 268 | return []string{ |
| 269 | "/etc/v2ray/config.json", |
| 270 | "/usr/local/etc/v2ray/config.json", |
| 271 | filepath.Join(home, ".config", "v2ray", "config.json"), |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | func singBoxConfigPaths() []string { |
| 276 | home, _ := os.UserHomeDir() |