mirror of
				https://github.com/snltty/linker.git
				synced 2025-10-31 20:43:00 +08:00 
			
		
		
		
	添加防火墙规则
This commit is contained in:
		| @@ -22,10 +22,10 @@ namespace cmonitor.plugins.wlan.report | ||||
|  | ||||
|         public bool Connected() | ||||
|         { | ||||
|             using Ping ping = new Ping(); | ||||
|             var replay = ping.Send("www.baidu.com", 5000); | ||||
|             return replay.Status == IPStatus.Success; | ||||
|             //return Wininet.InternetGetConnectedState(out int desc, 0); | ||||
|             //using Ping ping = new Ping(); | ||||
|             ////var replay = ping.Send("www.baidu.com", 5000); | ||||
|             //return replay.Status == IPStatus.Success; | ||||
|             return common.libs.winapis.Wininet.InternetGetConnectedState(out int desc, 0); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 snltty
					snltty