{"action":"created","issue":{"url":"https://api.github.com/repos/schollz/croc/issues/25","repository_url":"https://api.github.com/repos/schollz/croc","labels_url":"https://api.github.com/repos/schollz/croc/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/schollz/croc/issues/25/comments","events_url":"https://api.github.com/repos/schollz/croc/issues/25/events","html_url":"https://github.com/schollz/croc/issues/25","id":267144329,"number":25,"title":"Do not allow new sender/receiver connection with the same code as current sender/recevier","user":{"login":"schollz","id":6550035,"avatar_url":"https://avatars1.githubusercontent.com/u/6550035?v=4","gravatar_id":"","url":"https://api.github.com/users/schollz","html_url":"https://github.com/schollz","followers_url":"https://api.github.com/users/schollz/followers","following_url":"https://api.github.com/users/schollz/following{/other_user}","gists_url":"https://api.github.com/users/schollz/gists{/gist_id}","starred_url":"https://api.github.com/users/schollz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schollz/subscriptions","organizations_url":"https://api.github.com/users/schollz/orgs","repos_url":"https://api.github.com/users/schollz/repos","events_url":"https://api.github.com/users/schollz/events{/privacy}","received_events_url":"https://api.github.com/users/schollz/received_events","type":"User","site_admin":false},"labels":[{"id":722654704,"url":"https://api.github.com/repos/schollz/croc/labels/bug","name":"bug","color":"ee0701","default":true},{"id":722654708,"url":"https://api.github.com/repos/schollz/croc/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true},{"id":723748426,"url":"https://api.github.com/repos/schollz/croc/labels/hacktoberfest","name":"hacktoberfest","color":"b60205","default":false},{"id":722654707,"url":"https://api.github.com/repos/schollz/croc/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-20T11:21:15Z","updated_at":"2017-10-20T15:57:15Z","closed_at":null,"author_association":"OWNER","body":"In the code, when someone connects it adds to a dictionary of current connections. Before adding, it should be checked if they are in the dictinoary and if so, `sendMessage(\"no\")` and return. The code to edit is here: https://github.com/schollz/croc/blob/master/relay.go#L112-L115 and here: https://github.com/schollz/croc/blob/master/relay.go#L144. \r\n\r\nPlease let me know if there are any questions."},"comment":{"url":"https://api.github.com/repos/schollz/croc/issues/comments/338247944","html_url":"https://github.com/schollz/croc/issues/25#issuecomment-338247944","issue_url":"https://api.github.com/repos/schollz/croc/issues/25","id":338247944,"user":{"login":"schollz","id":6550035,"avatar_url":"https://avatars1.githubusercontent.com/u/6550035?v=4","gravatar_id":"","url":"https://api.github.com/users/schollz","html_url":"https://github.com/schollz","followers_url":"https://api.github.com/users/schollz/followers","following_url":"https://api.github.com/users/schollz/following{/other_user}","gists_url":"https://api.github.com/users/schollz/gists{/gist_id}","starred_url":"https://api.github.com/users/schollz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schollz/subscriptions","organizations_url":"https://api.github.com/users/schollz/orgs","repos_url":"https://api.github.com/users/schollz/repos","events_url":"https://api.github.com/users/schollz/events{/privacy}","received_events_url":"https://api.github.com/users/schollz/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T15:57:15Z","updated_at":"2017-10-20T15:57:15Z","author_association":"OWNER","body":"@lummie Yes. Its not clear at the moment, but you had the right idea. You need to run three commands in three different terminals:\r\n\r\n1. `./croc -relay` will be the relay\r\n2. `./croc -server localhost -send FILE -code 1-test` will send the file, with code specified\r\n3. `./croc -server localhost -code 1 test` will receive the file without prompting about the code\r\n"}}
{"actor":{"display_login":"schollz"}}