{"action":"created","issue":{"url":"https://api.github.com/repos/ThrDev/Socks5/issues/16","repository_url":"https://api.github.com/repos/ThrDev/Socks5","labels_url":"https://api.github.com/repos/ThrDev/Socks5/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ThrDev/Socks5/issues/16/comments","events_url":"https://api.github.com/repos/ThrDev/Socks5/issues/16/events","html_url":"https://github.com/ThrDev/Socks5/issues/16","id":190592144,"number":16,"title":"Socks Client - Valid Ports Larger then Int16","user":{"login":"zharris6","id":6600305,"avatar_url":"https://avatars.githubusercontent.com/u/6600305?v=3","gravatar_id":"","url":"https://api.github.com/users/zharris6","html_url":"https://github.com/zharris6","followers_url":"https://api.github.com/users/zharris6/followers","following_url":"https://api.github.com/users/zharris6/following{/other_user}","gists_url":"https://api.github.com/users/zharris6/gists{/gist_id}","starred_url":"https://api.github.com/users/zharris6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zharris6/subscriptions","organizations_url":"https://api.github.com/users/zharris6/orgs","repos_url":"https://api.github.com/users/zharris6/repos","events_url":"https://api.github.com/users/zharris6/events{/privacy}","received_events_url":"https://api.github.com/users/zharris6/received_events","type":"User","site_admin":false},"labels":[{"id":263684515,"url":"https://api.github.com/repos/ThrDev/Socks5/labels/Answered","name":"Answered","color":"99FF00","default":false},{"id":93005403,"url":"https://api.github.com/repos/ThrDev/Socks5/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-20T23:27:06Z","updated_at":"2016-11-22T00:03:49Z","closed_at":null,"body":"Hello -\r\n\r\nRunning into an issue with a valid port ex: 35622 Cannot be converted to a 16 bit INT.\r\n\r\nI tried to simply run Convert.ToInt32 and this breaks the application (data cannot be read and exception is thrown)\r\n\r\nAny help would be appreciated! \r\n\r\n\r\nClass:  Socks.cs\r\n\r\n```\r\n        public byte[] GetData(bool NetworkToHostOrder) //NetworkToHostOrder = false\r\n        {\r\n            byte[] data;\r\n            var port = 0;\r\n            if(NetworkToHostOrder)\r\n                port = IPAddress.NetworkToHostOrder(Port);\r\n            else\r\n                port = IPAddress.HostToNetworkOrder(Convert.ToInt16(Port));\r\n```"},"comment":{"url":"https://api.github.com/repos/ThrDev/Socks5/issues/comments/262107244","html_url":"https://github.com/ThrDev/Socks5/issues/16#issuecomment-262107244","issue_url":"https://api.github.com/repos/ThrDev/Socks5/issues/16","id":262107244,"user":{"login":"ThrDev","id":5459179,"avatar_url":"https://avatars.githubusercontent.com/u/5459179?v=3","gravatar_id":"","url":"https://api.github.com/users/ThrDev","html_url":"https://github.com/ThrDev","followers_url":"https://api.github.com/users/ThrDev/followers","following_url":"https://api.github.com/users/ThrDev/following{/other_user}","gists_url":"https://api.github.com/users/ThrDev/gists{/gist_id}","starred_url":"https://api.github.com/users/ThrDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThrDev/subscriptions","organizations_url":"https://api.github.com/users/ThrDev/orgs","repos_url":"https://api.github.com/users/ThrDev/repos","events_url":"https://api.github.com/users/ThrDev/events{/privacy}","received_events_url":"https://api.github.com/users/ThrDev/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T00:03:49Z","updated_at":"2016-11-22T00:03:49Z","body":"Hey there! I've pushed a fix. Please let me know if this patch works for you.\r\n\r\nhttps://github.com/ThrDev/Socks5/commit/0717ade100ea8b17b34bdb302f6f652a78dbdadb"}}
{"actor":{"display_login":"ThrDev"}}