mirror of https://github.com/2dust/v2rayN
				
				
				
			Code clean
							parent
							
								
									83ad83b135
								
							
						
					
					
						commit
						bf8bbbdcb0
					
				| 
						 | 
				
			
			@ -10,7 +10,7 @@ namespace ServiceLib.Services.Statistics
 | 
			
		|||
        private ClientWebSocket? webSocket;
 | 
			
		||||
        private Action<ServerSpeedItem>? _updateFunc;
 | 
			
		||||
        private string Url => $"ws://{Global.Loopback}:{AppHandler.Instance.StatePort2}/traffic";
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
        public StatisticsSingboxService(Config config, Action<ServerSpeedItem> updateFunc)
 | 
			
		||||
        {
 | 
			
		||||
            _config = config;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -459,7 +459,7 @@ namespace ServiceLib.ViewModels
 | 
			
		|||
                if (_config.Inbound.First().NewPort4LAN)
 | 
			
		||||
                {
 | 
			
		||||
                    StringBuilder sb2 = new();
 | 
			
		||||
                    sb2.Append($"[{EInboundProtocol.mixed}:{AppHandler.Instance.GetLocalPort(EInboundProtocol.socks2)}]");                    
 | 
			
		||||
                    sb2.Append($"[{EInboundProtocol.mixed}:{AppHandler.Instance.GetLocalPort(EInboundProtocol.socks2)}]");
 | 
			
		||||
                    InboundLanDisplay = $"{ResUI.LabLAN}:{sb2}";
 | 
			
		||||
                }
 | 
			
		||||
                else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -152,7 +152,7 @@ namespace v2rayN.Desktop.Views
 | 
			
		|||
                menuGlobalHotkeySetting.IsVisible = false;
 | 
			
		||||
            }
 | 
			
		||||
            menuAddServerViaScan.IsVisible = false;
 | 
			
		||||
            
 | 
			
		||||
 | 
			
		||||
            RestoreUI();
 | 
			
		||||
            AddHelpMenuItem();
 | 
			
		||||
            //WindowsHandler.Instance.RegisterGlobalHotkey(_config, OnHotkeyHandler, null);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -51,6 +51,7 @@ namespace v2rayN.Views
 | 
			
		|||
        {
 | 
			
		||||
            AutofitColumnWidth();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private void AutofitColumnWidth()
 | 
			
		||||
        {
 | 
			
		||||
            foreach (var it in lstConnections.Columns)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue