{"id":16781308,"url":"https://github.com/romantomjak/go-socks","last_synced_at":"2025-06-16T08:09:37.970Z","repository":{"id":57636166,"uuid":"100302148","full_name":"romantomjak/go-socks","owner":"romantomjak","description":"SOCKS (SOCKS4, SOCKS4a, SOCKS5) proxy server written in Go","archived":false,"fork":false,"pushed_at":"2022-11-09T08:11:01.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T07:10:00.841Z","etag":null,"topics":["go","socks","socks-proxy","socks4","socks4a","socks5"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romantomjak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-14T19:26:25.000Z","updated_at":"2024-01-01T19:21:31.000Z","dependencies_parsed_at":"2022-09-26T20:21:37.962Z","dependency_job_id":null,"html_url":"https://github.com/romantomjak/go-socks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romantomjak%2Fgo-socks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romantomjak%2Fgo-socks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romantomjak%2Fgo-socks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romantomjak%2Fgo-socks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romantomjak","download_url":"https://codeload.github.com/romantomjak/go-socks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926383,"owners_count":20369971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","socks","socks-proxy","socks4","socks4a","socks5"],"created_at":"2024-10-13T07:42:40.815Z","updated_at":"2025-03-16T20:24:58.589Z","avatar_url":"https://github.com/romantomjak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-socks\n\n[![Build Status](https://travis-ci.org/r00m/go-socks.svg?branch=master)](https://travis-ci.org/r00m/go-socks)\n[![Coverage Status](https://coveralls.io/repos/github/r00m/go-socks/badge.svg?branch=master)](https://coveralls.io/github/r00m/go-socks?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/r00m/go-socks)](https://goreportcard.com/report/github.com/r00m/go-socks)\n[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/r00m/go-socks/blob/master/LICENSE)\n\nSOCKS (SOCKS4, SOCKS4a, SOCKS5) proxy library for Go\n\n---\n\n## Requirements\n\n- Go 1.8\n\n## Client example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\n\t\"github.com/romantomjak/go-socks\"\n)\n\nfunc main() {\n\t// 1. connect to a SOCKS server\n\tclient, err := socks.NewV4Client(\"127.0.0.1:1234\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// 2. instruct the server to relay connections to golang.org\n\tconn, err := client.Connect(\"142.250.187.241:80\", \"roman\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer conn.Close()\n\n\t// 3. fetch index.html via the relayed connection\n\tfmt.Fprintf(conn, \"GET / HTTP/1.0\\r\\n\\r\\n\")\n\tbody, err := io.ReadAll(conn)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"%s\\n\", body)\n}\n```\n\n## Testing\n\n```\n$ go test\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromantomjak%2Fgo-socks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromantomjak%2Fgo-socks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromantomjak%2Fgo-socks/lists"}