(id: &str)
| 765 | } |
| 766 | |
| 767 | pub fn set_id(id: &str) { |
| 768 | let mut config = CONFIG.write().unwrap(); |
| 769 | if id == config.id { |
| 770 | return; |
| 771 | } |
| 772 | config.id = id.into(); |
| 773 | config.store(); |
| 774 | } |
| 775 | |
| 776 | pub fn set_nat_type(nat_type: i32) { |
| 777 | let mut config = CONFIG2.write().unwrap(); |