mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Remove private keys from payload
This commit is contained in:
		| @@ -31,8 +31,6 @@ function DisplayWireGuardConfig() | ||||
|     exec('sudo cat '. RASPI_WIREGUARD_CONFIG, $return); | ||||
|     $conf = ParseConfig($return); | ||||
|     $wg_srvpubkey = exec('sudo cat '. RASPI_WIREGUARD_PATH .'wg-server-public.key', $return); | ||||
|     $wg_srvprivkey = exec('sudo cat '. RASPI_WIREGUARD_PATH .'wg-server-private.key', $return); | ||||
|     $wg_peerprivkey = exec('sudo cat '. RASPI_WIREGUARD_PATH .'wg-peer-private.key', $return); | ||||
|     $wg_srvport = ($conf['ListenPort'] == '') ? getDefaultNetValue('wireguard','server','ListenPort') : $conf['ListenPort']; | ||||
|     $wg_srvipaddress = ($conf['Address'] == '') ? getDefaultNetValue('wireguard','server','Address') : $conf['Address']; | ||||
|     $wg_pendpoint = ($conf['Endpoint'] == '') ? getDefaultNetValue('wireguard','peer','Endpoint') : $conf['Endpoint']; | ||||
| @@ -54,8 +52,6 @@ function DisplayWireGuardConfig() | ||||
|             "endpoint_enable", | ||||
|             "peer_id", | ||||
|             "wg_srvpubkey", | ||||
|             "wg_srvprivkey", | ||||
|             "wg_peerprivkey", | ||||
|             "wg_srvport", | ||||
|             "wg_srvipaddress", | ||||
|             "wg_peerpubkey", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user