Add WireGuard VPS sync bootstrap flow

This commit is contained in:
litoral05
2026-05-07 16:39:25 +01:00
parent fe2faa4784
commit ad9a053099
22 changed files with 174 additions and 544 deletions
@@ -93,4 +93,18 @@ public class WireGuardVpsService {
return result.stdout();
}
public String showAllowedIps() {
SshCommandResult result = sshService.executeOnConfiguredVps(
"sudo /usr/local/sbin/lr-wg-used-ips"
);
if (result.exitCode() != 0) {
throw new SshCommandException(
"Failed to query WireGuard allowed IPs: " + result.stderr()
);
}
return result.stdout();
}
}