Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 15 Feb 13:29
5a95812

Breaking Changes 🚨

  • Changed binary name from torrent-blocker to tblocker
  • Changed installation directory from /opt/torrent-blocker to /opt/tblocker
  • Changed systemd service name from torrent-blocker.service to tblocker.service
  • Changed module name from torrents-blocker to tblocker
  • Changed repository name and all related paths from marzban-torrent-blocker to xray-torrent-blocker

Major Changes

  • Renamed project from "Marzban Torrent Blocker" to "XRay Torrent Blocker" to better reflect its universal compatibility
  • Added persistent storage for blocked IPs, preventing loss of block state during application restarts

New Features

  • Added persistent block storage in JSON format
  • Added automatic restoration of active blocks after application restart
  • Added automatic cleanup of expired blocks
  • Added automatic block state recovery after system reboot

Infrastructure Changes

  • Updated all path references in installation scripts and service files
  • Updated .goreleaser.yaml and Makefile to use new binary name
  • Updated GitHub repository references in installation script

Configuration

  • Added new StorageDir configuration option (default: /opt/tblocker)
  • Updated example configuration file with new storage options

Migration Guide 🔄

Users upgrading from previous versions must:

  1. Stop the old service: systemctl stop torrent-blocker
  2. Move their configuration:
    mv /opt/torrent-blocker/config.yaml /opt/tblocker/config.yaml
  3. Update their systemd service file:
    curl -sL https://raw.githubusercontent.com/kutovoys/xray-torrent-blocker/main/tblocker.service -o /etc/systemd/system/tblocker.service
  4. Reload systemd and start new service:
    systemctl daemon-reload
    systemctl enable tblocker
    systemctl start tblocker
  5. Remove old service and files:
    systemctl disable torrent-blocker
    rm /etc/systemd/system/torrent-blocker.service
    rm -rf /opt/torrent-blocker

Full Changelog: v0.2.0...v0.3.0