Skip to content
This repository was archived by the owner on Apr 13, 2019. It is now read-only.
This repository was archived by the owner on Apr 13, 2019. It is now read-only.

Support for reverse DCC SEND #248

@obfuscoder

Description

@obfuscoder

At the moment cinch does not support reverse dcc sends.

https://en.wikipedia.org/wiki/Direct_Client-to-Client#Reverse_.2F_Firewall_DCC

It doesn't detect these messages and never fires the dcc_send event. This is due to the regex used:

message =~ /^\001DCC SEND (?:"([^"]+)"|(\S+)) (\S+) (\d+)(?: (\d+))?\001$/

For reverse DCCs the port is set to 0 and the filesize is followed by an additional parameter - a token.

The first step towards supporting reverse DCCs would be to detect them by updating the regex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions