mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
work on http_private, including parsing announce requests
This commit is contained in:
parent
87223f7952
commit
dc943674f6
7 changed files with 69 additions and 33 deletions
|
|
@ -16,7 +16,7 @@ Create stored procedure (`OR REPLACE` keeps privileges in place and is supported
|
|||
```sql
|
||||
CREATE OR REPLACE PROCEDURE aquatic_announce_v1 (
|
||||
IN p_source_ip VARBINARY(16),
|
||||
IN p_source_port SMALLINT,
|
||||
IN p_source_port SMALLINT UNSIGNED,
|
||||
IN p_user_agent TEXT,
|
||||
IN p_user_token VARCHAR(255),
|
||||
IN p_info_hash CHAR(40),
|
||||
|
|
@ -39,3 +39,11 @@ Create `.env` file:
|
|||
```sh
|
||||
DATABASE_URL="mysql://aquatic:aquatic@localhost/aquatic"
|
||||
```
|
||||
|
||||
Run application:
|
||||
|
||||
```sh
|
||||
cargo run -p aquatic_http_private
|
||||
```
|
||||
|
||||
Test by visiting `localhost:3000/abcd/announce/?info_hash=abcdeabcdeabcdeabcde&peer_id=abcdeabcdeabcdeabcde&port=1000&left=0`
|
||||
Loading…
Add table
Add a link
Reference in a new issue