From: Michael Tremer Date: Wed, 24 Apr 2024 20:49:11 +0000 (+0200) Subject: wireguard.cgi: Adjust IDs of the peer X-Git-Tag: v2.29-core195~14^2~93^2~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f79f01123992781788ab7b5eac12794fa21143a;p=ipfire-2.x.git wireguard.cgi: Adjust IDs of the peer Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/wireguard.cgi b/html/cgi-bin/wireguard.cgi index 22c520b8e..0527c3c17 100644 --- a/html/cgi-bin/wireguard.cgi +++ b/html/cgi-bin/wireguard.cgi @@ -143,23 +143,23 @@ if ($cgiparams{"ACTION"} eq $Lang::tr{'save'}) { # Store all values $peers{$key} = [ - # 1 = Enabled + # 0 = Enabled "on", - # 2 = Type + # 1 = Type "net", - # 3 = Name + # 2 = Name $cgiparams{"NAME"}, - # 4 = Pubkey + # 3 = Pubkey $cgiparams{"PUBLIC_KEY"}, - # 5 = Endpoint Address + # 4 = Endpoint Address $cgiparams{"ENDPOINT_ADDRESS"}, - # 6 = Endpoint Port + # 5 = Endpoint Port $cgiparams{"ENDPORT_PORT"}, - # 7 = Remote Subnets + # 6 = Remote Subnets join("|", @remote_subnets), - # 8 = Remark + # 7 = Remark &MIME::Base64::encode_base64($cgiparams{"REMARKS"}), - # 9 = Local Subnets + # 8 = Local Subnets join("|", @local_subnets), ];