{"action":"created","issue":{"url":"https://api.github.com/repos/ssbc/scuttlebot/issues/155","labels_url":"https://api.github.com/repos/ssbc/scuttlebot/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/ssbc/scuttlebot/issues/155/comments","events_url":"https://api.github.com/repos/ssbc/scuttlebot/issues/155/events","html_url":"https://github.com/ssbc/scuttlebot/pull/155","id":66588277,"number":155,"title":"[Disscussion] torrent tracker on public node ","user":{"login":"No9","id":130940,"avatar_url":"https://avatars.githubusercontent.com/u/130940?v=3","gravatar_id":"","url":"https://api.github.com/users/No9","html_url":"https://github.com/No9","followers_url":"https://api.github.com/users/No9/followers","following_url":"https://api.github.com/users/No9/following{/other_user}","gists_url":"https://api.github.com/users/No9/gists{/gist_id}","starred_url":"https://api.github.com/users/No9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/No9/subscriptions","organizations_url":"https://api.github.com/users/No9/orgs","repos_url":"https://api.github.com/users/No9/repos","events_url":"https://api.github.com/users/No9/events{/privacy}","received_events_url":"https://api.github.com/users/No9/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-04-06T11:43:13Z","updated_at":"2015-05-06T01:02:05Z","closed_at":"2015-05-05T22:49:28Z","pull_request":{"url":"https://api.github.com/repos/ssbc/scuttlebot/pulls/155","html_url":"https://github.com/ssbc/scuttlebot/pull/155","diff_url":"https://github.com/ssbc/scuttlebot/pull/155.diff","patch_url":"https://github.com/ssbc/scuttlebot/pull/155.patch"},"body":"Hey All \r\n\r\nAs mentioned in https://github.com/ssbc/scuttlebot/issues/149 this is a torrent-tracker for a public server. \r\n\r\nThe integration is around here \r\nhttps://github.com/ssbc/scuttlebot/compare/master...No9:master#diff-168726dbe96b3ce427e7fedce31bb0bcR335 \r\n\r\nWhen a ```host``` param is supplied then a torrent tracker will be created. \r\n\r\nThis is my first integration so if anyone has any suggestions/tips on the way that I have put the pluggin together then please feedback.  \r\n\r\nNote the tracker plugin will log on start up:  \r\n```\r\ninfo SiNB SBOT  torrent-tracker \"http server listening on 8000\"\r\ninfo SiNB SBOT  torrent-tracker \"udp server listening on 8000\r\n```\r\n\r\nIf this is too chatty then it can be turned off with ```quiet : true``` \r\nhttps://github.com/ssbc/scuttlebot/compare/master...No9:master#diff-1701aeec89893e26031e65ef7176b384R22 \r\n\r\nI will also consider the impact of these bittorrent-tracker events when I get more into the ssb code base. \r\nhttps://github.com/feross/bittorrent-tracker/blob/master/bin/cmd.js#L69 \r\n\r\nI will start looking at the clientside of this now. "},"comment":{"url":"https://api.github.com/repos/ssbc/scuttlebot/issues/comments/99278287","html_url":"https://github.com/ssbc/scuttlebot/pull/155#issuecomment-99278287","issue_url":"https://api.github.com/repos/ssbc/scuttlebot/issues/155","id":99278287,"user":{"login":"No9","id":130940,"avatar_url":"https://avatars.githubusercontent.com/u/130940?v=3","gravatar_id":"","url":"https://api.github.com/users/No9","html_url":"https://github.com/No9","followers_url":"https://api.github.com/users/No9/followers","following_url":"https://api.github.com/users/No9/following{/other_user}","gists_url":"https://api.github.com/users/No9/gists{/gist_id}","starred_url":"https://api.github.com/users/No9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/No9/subscriptions","organizations_url":"https://api.github.com/users/No9/orgs","repos_url":"https://api.github.com/users/No9/repos","events_url":"https://api.github.com/users/No9/events{/privacy}","received_events_url":"https://api.github.com/users/No9/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T01:02:05Z","updated_at":"2015-05-06T01:02:05Z","body":"@dominictarr cleaned up my downstream which has closed this off. \r\nI have the remote connection coming through from the gossip plugin event. 'rpc:connect' as you suggested \r\nI am picking up the _remoteAddress property\r\nhttps://github.com/No9/scuttlebot/blob/bittorrent-dht/plugins/torrent-dht.js#L49 \r\nIgnoring local addresses.\r\nThen parsing out the _remoteAddress to get the IP that I can then suffix the dht port on. \r\nIf there is a better way to get the remoteAddress then that would be cool. \r\n "}}