diff options
Diffstat (limited to 'playbooks.d/vpn-wireguard/playbook.bash')
-rw-r--r-- | playbooks.d/vpn-wireguard/playbook.bash | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/playbooks.d/vpn-wireguard/playbook.bash b/playbooks.d/vpn-wireguard/playbook.bash index a8ed753..82b7286 100644 --- a/playbooks.d/vpn-wireguard/playbook.bash +++ b/playbooks.d/vpn-wireguard/playbook.bash @@ -3,7 +3,8 @@ # shellcheck disable=SC2034 BASHTARD_PLAYBOOK_VARS[$BASHTARD_PLAYBOOK.endpoint]="required" -BASHTARD_PLAYBOOK_VARS[$BASHTARD_PLAYBOOK.ip]="required" +BASHTARD_PLAYBOOK_VARS[$BASHTARD_PLAYBOOK.ipv4]="required" +BASHTARD_PLAYBOOK_VARS[$BASHTARD_PLAYBOOK.ipv6]="required" playbook_add() { local data @@ -62,7 +63,8 @@ playbook_sync() { # Write the Interface section file_template "interface" \ - ip="$(config "$BASHTARD_PLAYBOOK.ip")" \ + ipv4="$(config "$BASHTARD_PLAYBOOK.ipv4")" \ + ipv6="$(config "$BASHTARD_PLAYBOOK.ipv6")" \ port="$(config "$BASHTARD_PLAYBOOK.port" "51820")" \ privkey="$(cat "$data/privkey")" \ > "$wgconf" |