mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Improve search for tun and wg device
This commit is contained in:
		| @@ -142,10 +142,10 @@ function ReadFirewallConf() { | ||||
|        $conf["client-device"] = ""; | ||||
|        $conf["restricted-ips"] = ""; | ||||
|     } | ||||
|     exec('ifconfig | grep -E -i "tun+"', $ret); | ||||
|     exec('ifconfig | grep -E -i "^tun[0-9]"', $ret); | ||||
|     $conf["openvpn-enable"] = !empty($ret); | ||||
|     unset($ret); | ||||
|     exec('ifconfig | grep -E -i "wg+"', $ret); | ||||
|     exec('ifconfig | grep -E -i "^wg[0-9]"', $ret); | ||||
|     $conf["wireguard-enable"] = !empty($ret); | ||||
|     return $conf; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user