Skip to content

Commit de0f650

Browse files
committed
Fixes new peer saving logic from the previous commit
1 parent 6d0d884 commit de0f650

File tree

1 file changed

+1
-1
lines changed
  • src/files/usr/local/pkg/wireguard

1 file changed

+1
-1
lines changed

src/files/usr/local/pkg/wireguard/wg.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function wg_do_post($post) {
174174

175175
$pconfig['peers']['wgpeer'] = array();
176176

177-
for ($idx = 0; $idx <= count($post['endpoint']); $idx++) {
177+
for ($idx = 0; $idx < count($post['endpoint']); $idx++) {
178178

179179
$peer = array();
180180
$peer['publickey'] = $post['publickeyp'][$idx];

0 commit comments

Comments
 (0)