mirror of https://github.com/2dust/v2rayN
Supports IPv6 addresses in profile summary
parent
6911883995
commit
9af1e7bca5
|
@ -32,7 +32,7 @@ public class ProfileItem : ReactiveObject
|
|||
public string GetSummary()
|
||||
{
|
||||
var summary = $"[{(ConfigType).ToString()}] ";
|
||||
var arrAddr = Address.Split('.');
|
||||
var arrAddr = Address.Contains(':') ? Address.Split(':') : Address.Split('.');
|
||||
var addr = arrAddr.Length switch
|
||||
{
|
||||
> 2 => $"{arrAddr.First()}***{arrAddr.Last()}",
|
||||
|
|
Loading…
Reference in New Issue