{"action":"created","issue":{"url":"https://api.github.com/repos/yinqiwen/gsnova/issues/32","repository_url":"https://api.github.com/repos/yinqiwen/gsnova","labels_url":"https://api.github.com/repos/yinqiwen/gsnova/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/yinqiwen/gsnova/issues/32/comments","events_url":"https://api.github.com/repos/yinqiwen/gsnova/issues/32/events","html_url":"https://github.com/yinqiwen/gsnova/pull/32","id":170463080,"number":32,"title":"测试部署ok,request","user":{"login":"devcodewak","id":11206755,"avatar_url":"https://avatars.githubusercontent.com/u/11206755?v=3","gravatar_id":"","url":"https://api.github.com/users/devcodewak","html_url":"https://github.com/devcodewak","followers_url":"https://api.github.com/users/devcodewak/followers","following_url":"https://api.github.com/users/devcodewak/following{/other_user}","gists_url":"https://api.github.com/users/devcodewak/gists{/gist_id}","starred_url":"https://api.github.com/users/devcodewak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devcodewak/subscriptions","organizations_url":"https://api.github.com/users/devcodewak/orgs","repos_url":"https://api.github.com/users/devcodewak/repos","events_url":"https://api.github.com/users/devcodewak/events{/privacy}","received_events_url":"https://api.github.com/users/devcodewak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":172,"created_at":"2016-08-10T16:40:29Z","updated_at":"2016-08-19T10:33:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yinqiwen/gsnova/pulls/32","html_url":"https://github.com/yinqiwen/gsnova/pull/32","diff_url":"https://github.com/yinqiwen/gsnova/pull/32.diff","patch_url":"https://github.com/yinqiwen/gsnova/pull/32.patch"},"body":"160802 fd8275a版\r\nws.go\r\n  通常: client hello ServerName为 url.HOST, 即MyAppName.herokuapp.com\r\n  修改:  强制client hello sni名为 herokuapp.com\r\n  目的:  1) 对中转的sni服务器隐藏了heroku app名   2)实测速度更快，估计sni服务器dns容易解析出主服务器\r\n\r\nlocal_server.go\r\n  测试：tor使用本程序socks5前置时，会出错。而https前置正常。\r\n  修改：不使用sni名走socks5，原因tor这里也是fake sni。仍使用socksTargetHost即可。\r\n  实测：tor前置此socks5通过。建议根据上下文略掉大段sni代码判断。\r\n\r\nprotected.go\r\n  在windows下编译报错。\r\n  原因：多处 socketFd 类型不对。\r\n  暂时解决：做 int 及 syscall.Handle 强制转换\r\n  建议：多个版本protected.go, 头加入类似// +build !windows\r\n\r\n//////////////////////////////////////////////////////////////////////////\r\n目前已部署heroku使用，client.json配置SNIProxy, 测试ok,速度超赞，y2b测速2k-4kbps\r\n请教一：PAAS下ServerList使用一个，不容易卡死。如配置多个ServerList，易卡住。\r\n请教二：请给出样板的client.json，hosts.json及服务端的server.json，及已完成的功能。可配合测试。\r\n\r\n看代码猜出的配置如下：  (备：官方已有标配，官方为准)\r\n```\r\nserver.json\r\n{\r\n\t\"Log\": [\"stdout\"],\r\n\t\"Encrypt\":{\r\n\t\t\"Method\": \"salsa20\",\r\n\t\t\"Key\": \"12345678901234567890123456789012\"\r\n\t}\r\n}\r\n\r\nhosts.json  //全空\r\n{\r\n}\r\n\r\nclient.json\r\n{\r\n\t// \"Log\": [\"stderr\",\"gsnova.log\"],\r\n\t\"Log\": [\"stderr\"],\r\n\t\"Encrypt\":{\r\n\t\t\"Method\": \"salsa20\",\r\n\t\t\"Key\": \"12345678901234567890123456789012\"\r\n\t},\r\n\t\"Proxy\":[\r\n\t\t{\r\n\t\t\t\"Local\": \"127.0.0.1:1080\",\r\n\t\t\t\"PAC\": [\r\n\t\t\t{\r\n\t\t\t\"Remote\": \"PAAS\"\r\n\t\t\t}\r\n\t\t\t]\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"Local\": \"127.0.0.1:8787\",\r\n\t\t\t\"PAC\": [\r\n\t\t\t{\r\n\t\t\t\"Remote\": \"PAAS\"\r\n\t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t],\r\n\r\n\t\"PAAS\":{\r\n\t\t\"Enable\":true,\r\n\t\t\"ServerList\":[\r\n        //\"wss://myapp1.herokuapp.com\"\r\n        //\"wss://myapp2.herokuapp.com\"\r\n        \"wss://myapp3.herokuapp.com\"\r\n    ],\r\n\t\t\"ConnsPerServer\": 3,\r\n\r\n    //mo\r\n\t\t\"SNIProxy\": \"202.171.253.111\"\r\n\t\t//cn\r\n\t\t//\"SNIProxy\": \"120.198.243.86\"\r\n    //hk\r\n\t\t//\"SNIProxy\": \"110.4.24.170\"\r\n\t\t//\"SNIProxy\": \"219.76.4.14\"\r\n\t\t\r\n\t}\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/yinqiwen/gsnova/issues/comments/240984871","html_url":"https://github.com/yinqiwen/gsnova/pull/32#issuecomment-240984871","issue_url":"https://api.github.com/repos/yinqiwen/gsnova/issues/32","id":240984871,"user":{"login":"jzp820927","id":5740066,"avatar_url":"https://avatars.githubusercontent.com/u/5740066?v=3","gravatar_id":"","url":"https://api.github.com/users/jzp820927","html_url":"https://github.com/jzp820927","followers_url":"https://api.github.com/users/jzp820927/followers","following_url":"https://api.github.com/users/jzp820927/following{/other_user}","gists_url":"https://api.github.com/users/jzp820927/gists{/gist_id}","starred_url":"https://api.github.com/users/jzp820927/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzp820927/subscriptions","organizations_url":"https://api.github.com/users/jzp820927/orgs","repos_url":"https://api.github.com/users/jzp820927/repos","events_url":"https://api.github.com/users/jzp820927/events{/privacy}","received_events_url":"https://api.github.com/users/jzp820927/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T10:33:03Z","updated_at":"2016-08-19T10:33:03Z","body":"对了，有个重要问题忘记说了，sniproxy 用的是 cn 的。你的意思，只有部分 cn 的 sniproxy 可行？有部分是不行的？"}}
{"actor":{"display_login":"jzp820927"}}