{"action":"created","issue":{"url":"https://api.github.com/repos/npgsql/npgsql/issues/750","labels_url":"https://api.github.com/repos/npgsql/npgsql/issues/750/labels{/name}","comments_url":"https://api.github.com/repos/npgsql/npgsql/issues/750/comments","events_url":"https://api.github.com/repos/npgsql/npgsql/issues/750/events","html_url":"https://github.com/npgsql/npgsql/issues/750","id":104750370,"number":750,"title":"Incorrect NpgsqlInet ToString for IPv4 if mask is /32","user":{"login":"burner-","id":3836115,"avatar_url":"https://avatars.githubusercontent.com/u/3836115?v=3","gravatar_id":"","url":"https://api.github.com/users/burner-","html_url":"https://github.com/burner-","followers_url":"https://api.github.com/users/burner-/followers","following_url":"https://api.github.com/users/burner-/following{/other_user}","gists_url":"https://api.github.com/users/burner-/gists{/gist_id}","starred_url":"https://api.github.com/users/burner-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burner-/subscriptions","organizations_url":"https://api.github.com/users/burner-/orgs","repos_url":"https://api.github.com/users/burner-/repos","events_url":"https://api.github.com/users/burner-/events{/privacy}","received_events_url":"https://api.github.com/users/burner-/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npgsql/npgsql/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/npgsql/npgsql/milestones/15","html_url":"https://github.com/npgsql/npgsql/milestones/3.0.2","labels_url":"https://api.github.com/repos/npgsql/npgsql/milestones/15/labels","id":1261610,"number":15,"title":"3.0.2","description":"","creator":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":13,"state":"open","created_at":"2015-08-18T23:03:01Z","updated_at":"2015-09-03T20:31:45Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-09-03T18:00:01Z","updated_at":"2015-09-03T20:32:04Z","closed_at":"2015-09-03T20:31:45Z","body":"at NpgsqlTypes row 784 there is \r\n        public override String ToString()\r\n        {\r\n            if (Netmask != 32) {\r\n                return string.Format(\"{0}/{1}\", Address, Netmask);\r\n            }\r\n            return Address.ToString();\r\n        }\r\n\r\nThat does not give proper string with ipv6 addresses if mask is /32. Following works with v4 and v6:\r\n        public override String ToString()\r\n        {\r\n            if (Netmask == 32 && Address.AddressFamily == AddressFamily.InterNetwork || Netmask == 128 && Address.AddressFamily == AddressFamily.InterNetworkV6) {\r\n                return Address.ToString();\r\n            }\r\n            return string.Format(\"{0}/{1}\", Address, Netmask);\r\n        }"},"comment":{"url":"https://api.github.com/repos/npgsql/npgsql/issues/comments/137566059","html_url":"https://github.com/npgsql/npgsql/issues/750#issuecomment-137566059","issue_url":"https://api.github.com/repos/npgsql/npgsql/issues/750","id":137566059,"user":{"login":"roji","id":1862641,"avatar_url":"https://avatars.githubusercontent.com/u/1862641?v=3","gravatar_id":"","url":"https://api.github.com/users/roji","html_url":"https://github.com/roji","followers_url":"https://api.github.com/users/roji/followers","following_url":"https://api.github.com/users/roji/following{/other_user}","gists_url":"https://api.github.com/users/roji/gists{/gist_id}","starred_url":"https://api.github.com/users/roji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roji/subscriptions","organizations_url":"https://api.github.com/users/roji/orgs","repos_url":"https://api.github.com/users/roji/repos","events_url":"https://api.github.com/users/roji/events{/privacy}","received_events_url":"https://api.github.com/users/roji/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T20:32:04Z","updated_at":"2015-09-03T20:32:04Z","body":"Thanks."}}