(&self)
| 443 | } |
| 444 | |
| 445 | fn store(&self) { |
| 446 | let mut config = self.clone(); |
| 447 | if let Some(mut socks) = config.socks { |
| 448 | socks.password = |
| 449 | encrypt_str_or_original(&socks.password, PASSWORD_ENC_VERSION, ENCRYPT_MAX_LEN); |
| 450 | config.socks = Some(socks); |
| 451 | } |
| 452 | Config::store_(&config, "2"); |
| 453 | } |
| 454 | |
| 455 | pub fn get() -> Config2 { |
| 456 | return CONFIG2.read().unwrap().clone(); |
no test coverage detected