Skip to content

IP#is_in? fails testing subnets #9

@leucos

Description

@leucos

When testing if a scope is included in another one, #is_in? fails :

>> net = IP.new("172.22.5.64/28")
=> #<IP::V4 172.22.5.64/28>
>> sup = IP.new("172.22.0.0/16")
=> #<IP::V4 172.22.0.0/16>
>> net.is_in?(sup)
=> false

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