Skip to content

Config resync instead of restart #10

@samrocketman

Description

@samrocketman

In the wg.conf monitor service a resync can be issued instead of a full restart.

ngoduykhanh/wireguard-ui#316

Pseudocode

if interface_checksum_matches; then
  sync config
else
  restart interface
fi

awk script

$1 ~ /^\[Interface\]$/ { out=1; }; out != 1 { next; }; $1 ~ /^[^\[#]/ { print; next}; { exit }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions