Skip to content

Commit b9c0d2a

Browse files
authored
Fix blocklist format for Transmission (#165)
Transmission blocklist needs IP ranges instead a single IP address
1 parent bb37976 commit b9c0d2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client_Transmission.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func Tr_FetchTorrents() *Tr_TorrentsStruct {
218218
func Tr_SubmitBlockPeer(blockPeerMap map[string]BlockPeerInfoStruct) bool {
219219
ipfilterList := []string{}
220220
for peerIP := range blockPeerMap {
221-
ipfilterList = append(ipfilterList, peerIP)
221+
ipfilterList = append(ipfilterList, ":" + peerIP + "-" + peerIP)
222222
}
223223

224224
Tr_ipfilterStr = strings.Join(ipfilterList, "\n")

0 commit comments

Comments
 (0)