]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
wireguard.cgi: Adjust IDs of the peer
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 24 Apr 2024 20:49:11 +0000 (22:49 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Apr 2025 14:48:31 +0000 (16:48 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/wireguard.cgi

index 22c520b8ec24e6d1e252658974d6519f0d64e0f3..0527c3c17e4616580d0d4799aa94a08a634219c2 100644 (file)
@@ -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),
        ];