{"id":20879225,"url":"https://github.com/7c/go-ssclient","last_synced_at":"2026-04-19T20:38:07.977Z","repository":{"id":206597411,"uuid":"717265149","full_name":"7c/go-ssclient","owner":"7c","description":"Shadowsocks client with error handling and signals","archived":false,"fork":false,"pushed_at":"2023-11-11T15:41:21.000Z","size":182,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T09:34:40.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7c.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-11T00:22:49.000Z","updated_at":"2023-11-11T00:23:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"def25cef-a5d1-456d-b49d-bfd69636fd21","html_url":"https://github.com/7c/go-ssclient","commit_stats":null,"previous_names":["7c/go-ssclient"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/7c/go-ssclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fgo-ssclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fgo-ssclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fgo-ssclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fgo-ssclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7c","download_url":"https://codeload.github.com/7c/go-ssclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fgo-ssclient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32022555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T07:15:38.626Z","updated_at":"2026-04-19T20:38:07.958Z","avatar_url":"https://github.com/7c.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssclient for go using go-shadowsocks2\n\nThis package is basic wrapper around a version of https://godoc.org/github.com/shadowsocks/go-shadowsocks2/. go-shadowsocks2 does not support acting as a package. This is why i had to take a stable version and build it in this package statically.. Also added kind of error handling for testing purphoses\n\nConnection Error Handling, Timeout Handling has been added with context and go-channels.\n\n# Install\n`go get github.com/7c/go-ssclient`\n\n# Usage\n## tcp/udp SSClient with socks5 listener\n```\nssc, err := shared.NewSSClient(\"ss://AEAD_CHACHA20_POLY1305:HwhYX94emfSVhMD@217.244.79.108:903\", true, time.Second*15)\nif err != nil {\n    log.Fatalln(err)\n}\n// launch tcp-only and listen on ':1080\" socks5\nssc.LaunchWithSocks5(\":1080\", false)\n\nfor {\n\t\tselect {\n\t\tcase \u003c-ssc.Ctx.Done():\n\t\t\tcolor.Green(\"Disconnected\")\n\t\t\tos.Exit(1)\n\t\tcase err3 := \u003c-ssc.Channels.ChanError:\n\t\t\tcolor.Red(\"Errored\", err3)\n\t\tcase \u003c-ssc.Channels.ChanTCPReady:\n\t\t\tcolor.Blue(\"TCP Listener is ready\")\n\t\t\t_, err3 := ssc.TestSocks5(\":1080\", \"tcp\")\n\t\t\tif err3 != nil {\n\t\t\t\tcolor.Yellow(\"TCP Test failed:%s\", err3)\n\t\t\t\tssc.Disconnect()\n\t\t\t}\n\t\t\tcolor.Yellow(\"TCP Test succeeed\")\n\t\tcase \u003c-ssc.Channels.ChanUDPReady:\n\t\t\tcolor.Yellow(\"UDP Listener is ready\")\n\t\t\t// ssc.TestSocks5(\":1080\", \"udp\")\n\t\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fgo-ssclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7c%2Fgo-ssclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fgo-ssclient/lists"}