feat: multi-IP storage for host (tested with zeroTier)

This commit is contained in:
TrueZhuanjia
2025-12-23 01:15:37 +08:00
parent 75f1d4d392
commit 2912a3a5cb
8 changed files with 50 additions and 3 deletions
@@ -765,6 +765,10 @@ static NSMutableSet* hostList;
[hostNotFoundAlert addAction:[UIAlertAction actionWithTitle:[LocalizationHelper localizedStringForKey:@"Ok"] style:UIAlertActionStyleDefault handler:nil]];
dispatch_async(dispatch_get_main_queue(), ^{
[self hideLoadingFrame:^{
if([error isEqualToString:[LocalizationHelper localizedStringForKey:@"Host information updated"]]){
DataManager* dataMan = [[DataManager alloc] init];
[dataMan updateHost:host];
}
[[self activeViewController] presentViewController:hostNotFoundAlert animated:YES completion:nil];
}];
});