mirror of
				https://github.com/v2board/v2board.git
				synced 2025-11-01 01:41:47 +08:00 
			
		
		
		
	update dns
This commit is contained in:
		| @@ -55,6 +55,10 @@ class ServerService | |||||||
|     { |     { | ||||||
|         if ($server->dnsSettings) { |         if ($server->dnsSettings) { | ||||||
|             $dns = json_decode($server->dnsSettings); |             $dns = json_decode($server->dnsSettings); | ||||||
|  |             if (isset($dns->servers)) { | ||||||
|  |                 array_push($dns->servers, '1.1.1.1'); | ||||||
|  |                 array_push($dns->servers, 'localhost'); | ||||||
|  |             } | ||||||
|             $json->dns = $dns; |             $json->dns = $dns; | ||||||
|             $json->outbound->settings->domainStrategy = 'UseIP'; |             $json->outbound->settings->domainStrategy = 'UseIP'; | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user