From 7f79f01123992781788ab7b5eac12794fa21143a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 24 Apr 2024 22:49:11 +0200 Subject: [PATCH] wireguard.cgi: Adjust IDs of the peer Signed-off-by: Michael Tremer --- html/cgi-bin/wireguard.cgi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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), ]; -- 2.47.3