Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

cannot use protocol "all" #327

Copy link
Copy link
@patman-cp

Description

@patman-cp
Issue body actions

Using protocol "all" causes a failure, with an error of "ValueError: invalid protocol all".

The problem is that in iptc/ip4tc.py the value of socket.IPPROTO_IP is 0, so the setting of protocols in that file of 0 to "all" is overwritten by socket.IPPROTO_IP and the value all will not match the checks in set_protocol.

This in iptc/ip4tc.py:

    protocols = {0: "all",
                socket.IPPROTO_AH: "ah",
...
                socket.IPPROTO_IP: "ip",
...
                }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.