{"action":"created","comment":{"url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/comments/30006002","id":30006002,"diff_hunk":"@@ -0,0 +1,156 @@\n+/* -*- mode: C; c-file-style: \"gnu\"; indent-tabs-mode: nil; -*- */\n+\n+/* GIO - GLib Input, Output and Streaming Library","path":"src/common/cockpitloopback.c","position":3,"original_position":3,"commit_id":"f509899bdb94e38fe1d94ee33bdc3d47d298e02c","original_commit_id":"f509899bdb94e38fe1d94ee33bdc3d47d298e02c","user":{"login":"dperpeet","id":8711649,"avatar_url":"https://avatars.githubusercontent.com/u/8711649?v=3","gravatar_id":"","url":"https://api.github.com/users/dperpeet","html_url":"https://github.com/dperpeet","followers_url":"https://api.github.com/users/dperpeet/followers","following_url":"https://api.github.com/users/dperpeet/following{/other_user}","gists_url":"https://api.github.com/users/dperpeet/gists{/gist_id}","starred_url":"https://api.github.com/users/dperpeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dperpeet/subscriptions","organizations_url":"https://api.github.com/users/dperpeet/orgs","repos_url":"https://api.github.com/users/dperpeet/repos","events_url":"https://api.github.com/users/dperpeet/events{/privacy}","received_events_url":"https://api.github.com/users/dperpeet/received_events","type":"User","site_admin":false},"body":"Did you copy this from GIO?\r\nOtherwise we should use a more generic header here and also change the copyright date to 2015.","created_at":"2015-05-10T20:59:57Z","updated_at":"2015-05-10T20:59:57Z","html_url":"https://github.com/cockpit-project/cockpit/pull/2261#discussion_r30006002","pull_request_url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/2261","_links":{"self":{"href":"https://api.github.com/repos/cockpit-project/cockpit/pulls/comments/30006002"},"html":{"href":"https://github.com/cockpit-project/cockpit/pull/2261#discussion_r30006002"},"pull_request":{"href":"https://api.github.com/repos/cockpit-project/cockpit/pulls/2261"}}},"pull_request":{"url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/2261","id":35067420,"html_url":"https://github.com/cockpit-project/cockpit/pull/2261","diff_url":"https://github.com/cockpit-project/cockpit/pull/2261.diff","patch_url":"https://github.com/cockpit-project/cockpit/pull/2261.patch","issue_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2261","number":2261,"state":"open","locked":false,"title":"Connect to loopback on either IPv4 and IPv6","user":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"body":" Use a GSocketConnectable to connect to streams. This means we can try multiple addresses in turn. Implement a test for this as well.\r\n    \r\nThis is necessary for sucky servers, that don't listen on both IPv6 and IPv4 locally. Kubernetes doesn't listen on both IPv4 and IPv6, so try both in turn on the given port.\r\n\r\nIn the future we may want to add local addresses as well. Needs more thought.","created_at":"2015-05-09T14:32:17Z","updated_at":"2015-05-10T20:59:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b4c242b7164a536b2dd870feb9d6ad554913560","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/2261/commits","review_comments_url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/2261/comments","review_comment_url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2261/comments","statuses_url":"https://api.github.com/repos/cockpit-project/cockpit/statuses/f509899bdb94e38fe1d94ee33bdc3d47d298e02c","head":{"label":"stefwalter:loopback-connectable","ref":"loopback-connectable","sha":"f509899bdb94e38fe1d94ee33bdc3d47d298e02c","user":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"repo":{"id":14296513,"name":"cockpit","full_name":"stefwalter/cockpit","owner":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stefwalter/cockpit","description":"Cockpit, a user interface for Linux servers","fork":true,"url":"https://api.github.com/repos/stefwalter/cockpit","forks_url":"https://api.github.com/repos/stefwalter/cockpit/forks","keys_url":"https://api.github.com/repos/stefwalter/cockpit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stefwalter/cockpit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stefwalter/cockpit/teams","hooks_url":"https://api.github.com/repos/stefwalter/cockpit/hooks","issue_events_url":"https://api.github.com/repos/stefwalter/cockpit/issues/events{/number}","events_url":"https://api.github.com/repos/stefwalter/cockpit/events","assignees_url":"https://api.github.com/repos/stefwalter/cockpit/assignees{/user}","branches_url":"https://api.github.com/repos/stefwalter/cockpit/branches{/branch}","tags_url":"https://api.github.com/repos/stefwalter/cockpit/tags","blobs_url":"https://api.github.com/repos/stefwalter/cockpit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stefwalter/cockpit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stefwalter/cockpit/git/refs{/sha}","trees_url":"https://api.github.com/repos/stefwalter/cockpit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stefwalter/cockpit/statuses/{sha}","languages_url":"https://api.github.com/repos/stefwalter/cockpit/languages","stargazers_url":"https://api.github.com/repos/stefwalter/cockpit/stargazers","contributors_url":"https://api.github.com/repos/stefwalter/cockpit/contributors","subscribers_url":"https://api.github.com/repos/stefwalter/cockpit/subscribers","subscription_url":"https://api.github.com/repos/stefwalter/cockpit/subscription","commits_url":"https://api.github.com/repos/stefwalter/cockpit/commits{/sha}","git_commits_url":"https://api.github.com/repos/stefwalter/cockpit/git/commits{/sha}","comments_url":"https://api.github.com/repos/stefwalter/cockpit/comments{/number}","issue_comment_url":"https://api.github.com/repos/stefwalter/cockpit/issues/comments{/number}","contents_url":"https://api.github.com/repos/stefwalter/cockpit/contents/{+path}","compare_url":"https://api.github.com/repos/stefwalter/cockpit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stefwalter/cockpit/merges","archive_url":"https://api.github.com/repos/stefwalter/cockpit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stefwalter/cockpit/downloads","issues_url":"https://api.github.com/repos/stefwalter/cockpit/issues{/number}","pulls_url":"https://api.github.com/repos/stefwalter/cockpit/pulls{/number}","milestones_url":"https://api.github.com/repos/stefwalter/cockpit/milestones{/number}","notifications_url":"https://api.github.com/repos/stefwalter/cockpit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stefwalter/cockpit/labels{/name}","releases_url":"https://api.github.com/repos/stefwalter/cockpit/releases{/id}","created_at":"2013-11-11T09:27:50Z","updated_at":"2015-01-30T14:52:29Z","pushed_at":"2015-05-10T17:21:14Z","git_url":"git://github.com/stefwalter/cockpit.git","ssh_url":"git@github.com:stefwalter/cockpit.git","clone_url":"https://github.com/stefwalter/cockpit.git","svn_url":"https://github.com/stefwalter/cockpit","homepage":"http://www.cockpit-project.org/","size":24631,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cockpit-project:master","ref":"master","sha":"6a311340759c00049bedd5e8bbc18a5832a115fd","user":{"login":"cockpit-project","id":5765104,"avatar_url":"https://avatars.githubusercontent.com/u/5765104?v=3","gravatar_id":"","url":"https://api.github.com/users/cockpit-project","html_url":"https://github.com/cockpit-project","followers_url":"https://api.github.com/users/cockpit-project/followers","following_url":"https://api.github.com/users/cockpit-project/following{/other_user}","gists_url":"https://api.github.com/users/cockpit-project/gists{/gist_id}","starred_url":"https://api.github.com/users/cockpit-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockpit-project/subscriptions","organizations_url":"https://api.github.com/users/cockpit-project/orgs","repos_url":"https://api.github.com/users/cockpit-project/repos","events_url":"https://api.github.com/users/cockpit-project/events{/privacy}","received_events_url":"https://api.github.com/users/cockpit-project/received_events","type":"Organization","site_admin":false},"repo":{"id":14049216,"name":"cockpit","full_name":"cockpit-project/cockpit","owner":{"login":"cockpit-project","id":5765104,"avatar_url":"https://avatars.githubusercontent.com/u/5765104?v=3","gravatar_id":"","url":"https://api.github.com/users/cockpit-project","html_url":"https://github.com/cockpit-project","followers_url":"https://api.github.com/users/cockpit-project/followers","following_url":"https://api.github.com/users/cockpit-project/following{/other_user}","gists_url":"https://api.github.com/users/cockpit-project/gists{/gist_id}","starred_url":"https://api.github.com/users/cockpit-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockpit-project/subscriptions","organizations_url":"https://api.github.com/users/cockpit-project/orgs","repos_url":"https://api.github.com/users/cockpit-project/repos","events_url":"https://api.github.com/users/cockpit-project/events{/privacy}","received_events_url":"https://api.github.com/users/cockpit-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cockpit-project/cockpit","description":"Cockpit, a user interface for Linux servers","fork":false,"url":"https://api.github.com/repos/cockpit-project/cockpit","forks_url":"https://api.github.com/repos/cockpit-project/cockpit/forks","keys_url":"https://api.github.com/repos/cockpit-project/cockpit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cockpit-project/cockpit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cockpit-project/cockpit/teams","hooks_url":"https://api.github.com/repos/cockpit-project/cockpit/hooks","issue_events_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/events{/number}","events_url":"https://api.github.com/repos/cockpit-project/cockpit/events","assignees_url":"https://api.github.com/repos/cockpit-project/cockpit/assignees{/user}","branches_url":"https://api.github.com/repos/cockpit-project/cockpit/branches{/branch}","tags_url":"https://api.github.com/repos/cockpit-project/cockpit/tags","blobs_url":"https://api.github.com/repos/cockpit-project/cockpit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cockpit-project/cockpit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cockpit-project/cockpit/git/refs{/sha}","trees_url":"https://api.github.com/repos/cockpit-project/cockpit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cockpit-project/cockpit/statuses/{sha}","languages_url":"https://api.github.com/repos/cockpit-project/cockpit/languages","stargazers_url":"https://api.github.com/repos/cockpit-project/cockpit/stargazers","contributors_url":"https://api.github.com/repos/cockpit-project/cockpit/contributors","subscribers_url":"https://api.github.com/repos/cockpit-project/cockpit/subscribers","subscription_url":"https://api.github.com/repos/cockpit-project/cockpit/subscription","commits_url":"https://api.github.com/repos/cockpit-project/cockpit/commits{/sha}","git_commits_url":"https://api.github.com/repos/cockpit-project/cockpit/git/commits{/sha}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/comments{/number}","issue_comment_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/comments{/number}","contents_url":"https://api.github.com/repos/cockpit-project/cockpit/contents/{+path}","compare_url":"https://api.github.com/repos/cockpit-project/cockpit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cockpit-project/cockpit/merges","archive_url":"https://api.github.com/repos/cockpit-project/cockpit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cockpit-project/cockpit/downloads","issues_url":"https://api.github.com/repos/cockpit-project/cockpit/issues{/number}","pulls_url":"https://api.github.com/repos/cockpit-project/cockpit/pulls{/number}","milestones_url":"https://api.github.com/repos/cockpit-project/cockpit/milestones{/number}","notifications_url":"https://api.github.com/repos/cockpit-project/cockpit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/labels{/name}","releases_url":"https://api.github.com/repos/cockpit-project/cockpit/releases{/id}","created_at":"2013-11-01T17:36:46Z","updated_at":"2015-05-08T12:32:22Z","pushed_at":"2015-05-10T17:21:14Z","git_url":"git://github.com/cockpit-project/cockpit.git","ssh_url":"git@github.com:cockpit-project/cockpit.git","clone_url":"https://github.com/cockpit-project/cockpit.git","svn_url":"https://github.com/cockpit-project/cockpit","homepage":"http://www.cockpit-project.org/","size":36171,"stargazers_count":978,"watchers_count":978,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"open_issues_count":307,"forks":105,"open_issues":307,"watchers":978,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cockpit-project/cockpit/pulls/2261"},"html":{"href":"https://github.com/cockpit-project/cockpit/pull/2261"},"issue":{"href":"https://api.github.com/repos/cockpit-project/cockpit/issues/2261"},"comments":{"href":"https://api.github.com/repos/cockpit-project/cockpit/issues/2261/comments"},"review_comments":{"href":"https://api.github.com/repos/cockpit-project/cockpit/pulls/2261/comments"},"review_comment":{"href":"https://api.github.com/repos/cockpit-project/cockpit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cockpit-project/cockpit/pulls/2261/commits"},"statuses":{"href":"https://api.github.com/repos/cockpit-project/cockpit/statuses/f509899bdb94e38fe1d94ee33bdc3d47d298e02c"}}}}