mirror of
https://github.com/zoriya/flood.git
synced 2026-06-04 03:27:15 +00:00
server: rTorrent: remove [] from IPv6 address
This commit is contained in:
@@ -3,7 +3,10 @@ import {stringTransformer, booleanTransformer, numberTransformer} from '../../ut
|
||||
const torrentPeerMethodCallConfigs = {
|
||||
address: {
|
||||
methodCall: 'p.address=',
|
||||
transformValue: stringTransformer,
|
||||
transformValue: (value: unknown) => {
|
||||
const address = value as string;
|
||||
return address.startsWith('[') ? address.slice(1, -1) : address;
|
||||
},
|
||||
},
|
||||
clientVersion: {
|
||||
methodCall: 'p.client_version=',
|
||||
|
||||
Reference in New Issue
Block a user