{"action":"created","issue":{"url":"https://api.github.com/repos/markrogoyski/ipv4-subnet-calculator-php/issues/9","repository_url":"https://api.github.com/repos/markrogoyski/ipv4-subnet-calculator-php","labels_url":"https://api.github.com/repos/markrogoyski/ipv4-subnet-calculator-php/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/markrogoyski/ipv4-subnet-calculator-php/issues/9/comments","events_url":"https://api.github.com/repos/markrogoyski/ipv4-subnet-calculator-php/issues/9/events","html_url":"https://github.com/markrogoyski/ipv4-subnet-calculator-php/issues/9","id":352480336,"node_id":"MDU6SXNzdWUzNTI0ODAzMzY=","number":9,"title":"Wrong min_host when using single ip","user":{"login":"hendrikbl","id":9558391,"node_id":"MDQ6VXNlcjk1NTgzOTE=","avatar_url":"https://avatars1.githubusercontent.com/u/9558391?v=4","gravatar_id":"","url":"https://api.github.com/users/hendrikbl","html_url":"https://github.com/hendrikbl","followers_url":"https://api.github.com/users/hendrikbl/followers","following_url":"https://api.github.com/users/hendrikbl/following{/other_user}","gists_url":"https://api.github.com/users/hendrikbl/gists{/gist_id}","starred_url":"https://api.github.com/users/hendrikbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hendrikbl/subscriptions","organizations_url":"https://api.github.com/users/hendrikbl/orgs","repos_url":"https://api.github.com/users/hendrikbl/repos","events_url":"https://api.github.com/users/hendrikbl/events{/privacy}","received_events_url":"https://api.github.com/users/hendrikbl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-21T10:32:34Z","updated_at":"2018-08-21T13:52:09Z","closed_at":null,"author_association":"NONE","body":"If the object is created with a subnetmask of 255.255.255.255 or /32, the min host isn't calculated correctly.\r\n\r\n```\r\n$subnet = new IPv4\\SubnetCalculator(192.168.178.23, 32);\r\n$subnet->printSubnetReport();\r\n```\r\nreturns \r\n\r\n```\r\n192.168.178.23/32            Quads      Hex                           Binary\r\n------------------ --------------- -------- --------------------------------\r\nIP Address:         192.168.178.23 C0A8B217 11000000101010001011001000010111\r\nSubnet Mask:       255.255.255.255 FFFFFFFF 11111111111111111111111111111111\r\nNetwork Portion:    192.168.178.23 C0A8B217 11000000101010001011001000010111\r\nHost Portion:              0.0.0.0 00000000 00000000000000000000000000000000\r\n\r\nNumber of IP Addresses:      1\r\nNumber of Addressable Hosts: 1\r\nIP Address Range:            192.168.178.23 - 192.168.178.23\r\nBroadcast Address:           192.168.178.23\r\nMin Host:                    192.168.178.24\r\nMax Host:                    192.168.178.23\r\n```\r\n\r\nThis also happens with both `getMinHost()` and `getAddressableHostRange()`."},"comment":{"url":"https://api.github.com/repos/markrogoyski/ipv4-subnet-calculator-php/issues/comments/414681425","html_url":"https://github.com/markrogoyski/ipv4-subnet-calculator-php/issues/9#issuecomment-414681425","issue_url":"https://api.github.com/repos/markrogoyski/ipv4-subnet-calculator-php/issues/9","id":414681425,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDY4MTQyNQ==","user":{"login":"hendrikbl","id":9558391,"node_id":"MDQ6VXNlcjk1NTgzOTE=","avatar_url":"https://avatars1.githubusercontent.com/u/9558391?v=4","gravatar_id":"","url":"https://api.github.com/users/hendrikbl","html_url":"https://github.com/hendrikbl","followers_url":"https://api.github.com/users/hendrikbl/followers","following_url":"https://api.github.com/users/hendrikbl/following{/other_user}","gists_url":"https://api.github.com/users/hendrikbl/gists{/gist_id}","starred_url":"https://api.github.com/users/hendrikbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hendrikbl/subscriptions","organizations_url":"https://api.github.com/users/hendrikbl/orgs","repos_url":"https://api.github.com/users/hendrikbl/repos","events_url":"https://api.github.com/users/hendrikbl/events{/privacy}","received_events_url":"https://api.github.com/users/hendrikbl/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T13:52:09Z","updated_at":"2018-08-21T13:52:09Z","author_association":"NONE","body":"@markrogoyski Yes, I'm using the latest 2.1.0 with the following in my `composer.json`\r\n```\r\nrogoyski/ipv4-subnet-calculator\": \"^2.1\"\r\n```"}}
{"actor":{"display_login":"hendrikbl"}}