wireguard update: add explanation about parsing

This commit is contained in:
bergware
2023-10-16 12:30:24 +02:00
parent dab8b99c9c
commit 4581506883
@@ -226,6 +226,8 @@ function createIPs($list) {
return implode(', ',array_map('host',array_filter(array_map('trim',explode(',',$list)))));
}
function parseInput($vtun,&$input,&$x) {
// assign values to parameters, be aware that certain parameters are assigned by parseInput itself
// this is based on the sequence of processing
global $conf,$user,$var,$default4,$default6,$vpn,$tunip;
$section = 0; $addPeer = false;
foreach ($input as $key => $value) {