Breaking Changes 🚨
- Changed binary name from
torrent-blocker
totblocker
- Changed installation directory from
/opt/torrent-blocker
to/opt/tblocker
- Changed systemd service name from
torrent-blocker.service
totblocker.service
- Changed module name from
torrents-blocker
totblocker
- Changed repository name and all related paths from
marzban-torrent-blocker
toxray-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
andMakefile
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:
- Stop the old service:
systemctl stop torrent-blocker
- Move their configuration:
mv /opt/torrent-blocker/config.yaml /opt/tblocker/config.yaml
- Update their systemd service file:
curl -sL https://raw.githubusercontent.com/kutovoys/xray-torrent-blocker/main/tblocker.service -o /etc/systemd/system/tblocker.service
- Reload systemd and start new service:
systemctl daemon-reload systemctl enable tblocker systemctl start tblocker
- 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