{"action":"created","issue":{"url":"https://api.github.com/repos/drcoms/drcom-generic/issues/136","repository_url":"https://api.github.com/repos/drcoms/drcom-generic","labels_url":"https://api.github.com/repos/drcoms/drcom-generic/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/drcoms/drcom-generic/issues/136/comments","events_url":"https://api.github.com/repos/drcoms/drcom-generic/issues/136/events","html_url":"https://github.com/drcoms/drcom-generic/pull/136","id":184652085,"number":136,"title":"Add a ProtoField `Client Version` for Misc, 2800 and Misc, File.","user":{"login":"coverxit","id":1834970,"avatar_url":"https://avatars.githubusercontent.com/u/1834970?v=3","gravatar_id":"","url":"https://api.github.com/users/coverxit","html_url":"https://github.com/coverxit","followers_url":"https://api.github.com/users/coverxit/followers","following_url":"https://api.github.com/users/coverxit/following{/other_user}","gists_url":"https://api.github.com/users/coverxit/gists{/gist_id}","starred_url":"https://api.github.com/users/coverxit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coverxit/subscriptions","organizations_url":"https://api.github.com/users/coverxit/orgs","repos_url":"https://api.github.com/users/coverxit/repos","events_url":"https://api.github.com/users/coverxit/events{/privacy}","received_events_url":"https://api.github.com/users/coverxit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-22T20:23:30Z","updated_at":"2016-10-23T05:39:06Z","closed_at":"2016-10-23T01:58:31Z","pull_request":{"url":"https://api.github.com/repos/drcoms/drcom-generic/pulls/136","html_url":"https://github.com/drcoms/drcom-generic/pull/136","diff_url":"https://github.com/drcoms/drcom-generic/pull/136.diff","patch_url":"https://github.com/drcoms/drcom-generic/pull/136.patch"},"body":"感谢 @SwimmingTiger 的发现，他发现了`Misc, 2800`和`Misc, File`的第6、7个字节（从0开始计数）很有可能表示当前客户端的版本号，姑且把这两个字节记作`version`。\r\n\r\n根据对几个不同学校的抓包的观察，原生客户端在第一次发送`Misc, 2800, Misc Type 1`后，网关会返回一个`Misc, File`，此时两个包的`version`字段的值是不同的。\r\n随后原生客户端发送的`Misc, 2800`的`version`字段的值就变成了之网关返回的`Misc, File`中的值。\r\n\r\n依据上述猜测，给`drcom_2016.lua`增加了一个`Client Version`的ProtoField.\r\n\r\n另，附上SwimmingTiger在我的repo下发的issue: https://github.com/coverxit/EasyDrcom/issues/13"},"comment":{"url":"https://api.github.com/repos/drcoms/drcom-generic/issues/comments/255570885","html_url":"https://github.com/drcoms/drcom-generic/pull/136#issuecomment-255570885","issue_url":"https://api.github.com/repos/drcoms/drcom-generic/issues/136","id":255570885,"user":{"login":"ly0","id":1551736,"avatar_url":"https://avatars.githubusercontent.com/u/1551736?v=3","gravatar_id":"","url":"https://api.github.com/users/ly0","html_url":"https://github.com/ly0","followers_url":"https://api.github.com/users/ly0/followers","following_url":"https://api.github.com/users/ly0/following{/other_user}","gists_url":"https://api.github.com/users/ly0/gists{/gist_id}","starred_url":"https://api.github.com/users/ly0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ly0/subscriptions","organizations_url":"https://api.github.com/users/ly0/orgs","repos_url":"https://api.github.com/users/ly0/repos","events_url":"https://api.github.com/users/ly0/events{/privacy}","received_events_url":"https://api.github.com/users/ly0/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T05:39:06Z","updated_at":"2016-10-23T05:39:06Z","body":"@coverxit \r\n![image](https://cloud.githubusercontent.com/assets/1551736/19624370/0e966a4e-9926-11e6-8da7-7787e715dbff.png)\r\n"}}
{"actor":{"display_login":"ly0"}}