{"action":"created","comment":{"url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/comments/48109076","id":48109076,"diff_hunk":"@@ -100,11 +100,20 @@ void ConfigHelper::importGuiConfigJson(const QString &file)\n         } else {\n             p.name = json[\"profile\"].toString();\n             p.serverPort = json[\"server_port\"].toString().toUShort();\n-            p.localAddress = json[\"local_address\"].toString();\n-            p.localPort = json[\"local_port\"].toString().toUShort();\n-            p.timeout = json[\"timeout\"].toString().toInt();\n+            p.localAddress = QString(\"127.0.0.1\");\n+            if (json.contains(\"local_address\")) {\n+                p.localAddress = json[\"local_address\"].toString();\n+            }\n+            p.localPort = json[\"local_port\"].toInt();\n+            p.timeout = 10;","path":"src/confighelper.cpp","position":12,"original_position":12,"commit_id":"6de19309df51d8465186324f7594ac2732f8f1dc","original_commit_id":"6de19309df51d8465186324f7594ac2732f8f1dc","user":{"login":"librehat","id":1279432,"avatar_url":"https://avatars.githubusercontent.com/u/1279432?v=3","gravatar_id":"","url":"https://api.github.com/users/librehat","html_url":"https://github.com/librehat","followers_url":"https://api.github.com/users/librehat/followers","following_url":"https://api.github.com/users/librehat/following{/other_user}","gists_url":"https://api.github.com/users/librehat/gists{/gist_id}","starred_url":"https://api.github.com/users/librehat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/librehat/subscriptions","organizations_url":"https://api.github.com/users/librehat/orgs","repos_url":"https://api.github.com/users/librehat/repos","events_url":"https://api.github.com/users/librehat/events{/privacy}","received_events_url":"https://api.github.com/users/librehat/received_events","type":"User","site_admin":false},"body":"The default timeout should be `600` instead of `10`","created_at":"2015-12-20T22:15:27Z","updated_at":"2015-12-20T22:15:27Z","html_url":"https://github.com/shadowsocks/shadowsocks-qt5/pull/240#discussion_r48109076","pull_request_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/240","_links":{"self":{"href":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/comments/48109076"},"html":{"href":"https://github.com/shadowsocks/shadowsocks-qt5/pull/240#discussion_r48109076"},"pull_request":{"href":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/240"}}},"pull_request":{"url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/240","id":54119212,"html_url":"https://github.com/shadowsocks/shadowsocks-qt5/pull/240","diff_url":"https://github.com/shadowsocks/shadowsocks-qt5/pull/240.diff","patch_url":"https://github.com/shadowsocks/shadowsocks-qt5/pull/240.patch","issue_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/issues/240","number":240,"state":"open","locked":false,"title":"fix bug in \"gui-config.json\" import function.","user":{"login":"banyudu","id":2416493,"avatar_url":"https://avatars.githubusercontent.com/u/2416493?v=3","gravatar_id":"","url":"https://api.github.com/users/banyudu","html_url":"https://github.com/banyudu","followers_url":"https://api.github.com/users/banyudu/followers","following_url":"https://api.github.com/users/banyudu/following{/other_user}","gists_url":"https://api.github.com/users/banyudu/gists{/gist_id}","starred_url":"https://api.github.com/users/banyudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banyudu/subscriptions","organizations_url":"https://api.github.com/users/banyudu/orgs","repos_url":"https://api.github.com/users/banyudu/repos","events_url":"https://api.github.com/users/banyudu/events{/privacy}","received_events_url":"https://api.github.com/users/banyudu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-18T16:07:38Z","updated_at":"2015-12-20T22:15:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c418092d3d06e8c25bd26e084e171c965d05bd36","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/240/commits","review_comments_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/240/comments","review_comment_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/issues/240/comments","statuses_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/statuses/6de19309df51d8465186324f7594ac2732f8f1dc","head":{"label":"banyudu:master","ref":"master","sha":"6de19309df51d8465186324f7594ac2732f8f1dc","user":{"login":"banyudu","id":2416493,"avatar_url":"https://avatars.githubusercontent.com/u/2416493?v=3","gravatar_id":"","url":"https://api.github.com/users/banyudu","html_url":"https://github.com/banyudu","followers_url":"https://api.github.com/users/banyudu/followers","following_url":"https://api.github.com/users/banyudu/following{/other_user}","gists_url":"https://api.github.com/users/banyudu/gists{/gist_id}","starred_url":"https://api.github.com/users/banyudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banyudu/subscriptions","organizations_url":"https://api.github.com/users/banyudu/orgs","repos_url":"https://api.github.com/users/banyudu/repos","events_url":"https://api.github.com/users/banyudu/events{/privacy}","received_events_url":"https://api.github.com/users/banyudu/received_events","type":"User","site_admin":false},"repo":{"id":48243336,"name":"shadowsocks-qt5","full_name":"banyudu/shadowsocks-qt5","owner":{"login":"banyudu","id":2416493,"avatar_url":"https://avatars.githubusercontent.com/u/2416493?v=3","gravatar_id":"","url":"https://api.github.com/users/banyudu","html_url":"https://github.com/banyudu","followers_url":"https://api.github.com/users/banyudu/followers","following_url":"https://api.github.com/users/banyudu/following{/other_user}","gists_url":"https://api.github.com/users/banyudu/gists{/gist_id}","starred_url":"https://api.github.com/users/banyudu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banyudu/subscriptions","organizations_url":"https://api.github.com/users/banyudu/orgs","repos_url":"https://api.github.com/users/banyudu/repos","events_url":"https://api.github.com/users/banyudu/events{/privacy}","received_events_url":"https://api.github.com/users/banyudu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/banyudu/shadowsocks-qt5","description":"A cross-platform shadowsocks GUI client","fork":true,"url":"https://api.github.com/repos/banyudu/shadowsocks-qt5","forks_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/forks","keys_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/teams","hooks_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/hooks","issue_events_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/issues/events{/number}","events_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/events","assignees_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/assignees{/user}","branches_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/branches{/branch}","tags_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/tags","blobs_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/git/refs{/sha}","trees_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/statuses/{sha}","languages_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/languages","stargazers_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/stargazers","contributors_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/contributors","subscribers_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/subscribers","subscription_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/subscription","commits_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/commits{/sha}","git_commits_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/git/commits{/sha}","comments_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/comments{/number}","issue_comment_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/issues/comments{/number}","contents_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/contents/{+path}","compare_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/merges","archive_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/downloads","issues_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/issues{/number}","pulls_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/pulls{/number}","milestones_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/milestones{/number}","notifications_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/labels{/name}","releases_url":"https://api.github.com/repos/banyudu/shadowsocks-qt5/releases{/id}","created_at":"2015-12-18T15:51:48Z","updated_at":"2015-12-18T15:51:50Z","pushed_at":"2015-12-18T16:07:00Z","git_url":"git://github.com/banyudu/shadowsocks-qt5.git","ssh_url":"git@github.com:banyudu/shadowsocks-qt5.git","clone_url":"https://github.com/banyudu/shadowsocks-qt5.git","svn_url":"https://github.com/banyudu/shadowsocks-qt5","homepage":"","size":6310,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"shadowsocks:master","ref":"master","sha":"7ec8a6306085531371e91d03aa8cb7f44ec728f5","user":{"login":"shadowsocks","id":3006190,"avatar_url":"https://avatars.githubusercontent.com/u/3006190?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowsocks","html_url":"https://github.com/shadowsocks","followers_url":"https://api.github.com/users/shadowsocks/followers","following_url":"https://api.github.com/users/shadowsocks/following{/other_user}","gists_url":"https://api.github.com/users/shadowsocks/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowsocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowsocks/subscriptions","organizations_url":"https://api.github.com/users/shadowsocks/orgs","repos_url":"https://api.github.com/users/shadowsocks/repos","events_url":"https://api.github.com/users/shadowsocks/events{/privacy}","received_events_url":"https://api.github.com/users/shadowsocks/received_events","type":"Organization","site_admin":false},"repo":{"id":18427187,"name":"shadowsocks-qt5","full_name":"shadowsocks/shadowsocks-qt5","owner":{"login":"shadowsocks","id":3006190,"avatar_url":"https://avatars.githubusercontent.com/u/3006190?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowsocks","html_url":"https://github.com/shadowsocks","followers_url":"https://api.github.com/users/shadowsocks/followers","following_url":"https://api.github.com/users/shadowsocks/following{/other_user}","gists_url":"https://api.github.com/users/shadowsocks/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowsocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowsocks/subscriptions","organizations_url":"https://api.github.com/users/shadowsocks/orgs","repos_url":"https://api.github.com/users/shadowsocks/repos","events_url":"https://api.github.com/users/shadowsocks/events{/privacy}","received_events_url":"https://api.github.com/users/shadowsocks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shadowsocks/shadowsocks-qt5","description":"A cross-platform shadowsocks GUI client","fork":false,"url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5","forks_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/forks","keys_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/teams","hooks_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/hooks","issue_events_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/issues/events{/number}","events_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/events","assignees_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/assignees{/user}","branches_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/branches{/branch}","tags_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/tags","blobs_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/git/refs{/sha}","trees_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/statuses/{sha}","languages_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/languages","stargazers_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/stargazers","contributors_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/contributors","subscribers_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/subscribers","subscription_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/subscription","commits_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/commits{/sha}","git_commits_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/git/commits{/sha}","comments_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/comments{/number}","issue_comment_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/issues/comments{/number}","contents_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/contents/{+path}","compare_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/merges","archive_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/downloads","issues_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/issues{/number}","pulls_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls{/number}","milestones_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/milestones{/number}","notifications_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/labels{/name}","releases_url":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/releases{/id}","created_at":"2014-04-04T04:15:50Z","updated_at":"2015-12-20T06:04:41Z","pushed_at":"2015-12-18T16:07:38Z","git_url":"git://github.com/shadowsocks/shadowsocks-qt5.git","ssh_url":"git@github.com:shadowsocks/shadowsocks-qt5.git","clone_url":"https://github.com/shadowsocks/shadowsocks-qt5.git","svn_url":"https://github.com/shadowsocks/shadowsocks-qt5","homepage":"","size":8622,"stargazers_count":863,"watchers_count":863,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":443,"mirror_url":null,"open_issues_count":7,"forks":443,"open_issues":7,"watchers":863,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/240"},"html":{"href":"https://github.com/shadowsocks/shadowsocks-qt5/pull/240"},"issue":{"href":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/issues/240"},"comments":{"href":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/issues/240/comments"},"review_comments":{"href":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/240/comments"},"review_comment":{"href":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/pulls/240/commits"},"statuses":{"href":"https://api.github.com/repos/shadowsocks/shadowsocks-qt5/statuses/6de19309df51d8465186324f7594ac2732f8f1dc"}}}}