Giter Site home page Giter Site logo

banner's Introduction

Запуск:

2 варианта запуска:

  1. Через конфиг WebTLO:
./banner tlo_config /var/www/webtlo/src/data/config.ini --ban_list=ban_list.txt

Параметры:

  • tlo_config - обязательно, после этого указать путь к файлу конфига webTLO
  • --ban_list=ban_list.txt - путь к файлу со списком клиентов, которых необходимо банить, ищется подстрокой, без учёта регистра
  1. Через параметры соединения qBittorrent:
banner.exe qbittorrent 127.0.0.1:1339 --user=admin --pass=password --ban_list=ban_list.txt 

Параметры:

  • qbittorrent - обязательно, после этого сервер для подключения в формате сервер:порт
  • --user - если используется аутентификация, имя пользователя
  • --pass - если используется аутентификация, пароль
  • --ban_list=ban_list.txt - путь к файлу со списком клиентов, которых необходимо банить, ищется подстрокой, без учёта регистра

banner's People

Contributors

avissian avatar

Watchers

 avatar

banner's Issues

question

hello. i have vpn app for my client. and wanna block torrent traffic and sites.
could you explain what exactly do this script ?

panic: runtime error: invalid memory address or nil pointer dereference

webtlo: v2.9.9-alpha12-dev1
client: qbittorrent 4.6.0 alpha 1
OS: Ubuntu 22.04.2 LTS x86_64 5.15.0-60-generic

Steps to reproduce:
Run: ./banner --tlo_config=<tlo_data_dir>/config.ini --ban_list=banlist.txt

Output

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x5ba03c]

goroutine 1 [running]:
gopkg.in/ini%2ev1.(*Key).String(...)
	/go/pkg/mod/gopkg.in/[email protected]/key.go:180
github.com/avissian/banner/tlo_config.loadTracker(0xc000098280?)
	/github/workspace/tlo_config/tlo.go:191 +0x27c
github.com/avissian/banner/tlo_config.(*ConfigT).Load(0xc0000d9d68, {0x7ffd8348780a?, 0x0?})
	/github/workspace/tlo_config/tlo.go:86 +0x246
main.tloConfig({0x7ffd8348780a?, 0xc0000061a0?}, {0x7ffd83487841, 0xb})
	/github/workspace/main.go:115 +0x6d
main.main()
	/github/workspace/main.go:158 +0x137

webtlo and qbittorrent configured correctly

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.