mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-02 03:38:07 +03:00
feat: update node IP and delay info on connect (#10050)
* feat: update node IP and delay info on connect * Adjust --------- Co-authored-by: 2dust <31833384+2dust@users.noreply.github.com>
This commit is contained in:
@@ -690,7 +690,18 @@ public partial class MainWindowViewModel : MyReactiveObject
|
||||
});
|
||||
RxSchedulers.MainThreadScheduler.Schedule(async () =>
|
||||
{
|
||||
await StatusBarViewModel.TestServerAvailability();
|
||||
var result = await StatusBarViewModel.TestServerAvailability();
|
||||
if (result == null || profileItem.IndexId.IsNullOrEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
await ProfilesViewModel.SetSpeedTestResult(new()
|
||||
{
|
||||
IndexId = profileItem.IndexId,
|
||||
IpInfo = result.Ip,
|
||||
Delay = result.Time > 0 ? result.Time.ToString() : null
|
||||
});
|
||||
});
|
||||
|
||||
var showClashUI = AppManager.Instance.IsRunningCore(ECoreType.sing_box);
|
||||
|
||||
Reference in New Issue
Block a user