()
| 425 | |
| 426 | impl Config2 { |
| 427 | fn load() -> Config2 { |
| 428 | let mut config = Config::load_::<Config2>("2"); |
| 429 | if let Some(mut socks) = config.socks { |
| 430 | let (password, _, store) = |
| 431 | decrypt_str_or_original(&socks.password, PASSWORD_ENC_VERSION); |
| 432 | socks.password = password; |
| 433 | config.socks = Some(socks); |
| 434 | if store { |
| 435 | config.store(); |
| 436 | } |
| 437 | } |
| 438 | config |
| 439 | } |
| 440 | |
| 441 | pub fn file() -> PathBuf { |
| 442 | Config::file_("2") |
no test coverage detected